Skip to content
Snippets Groups Projects
Commit cfbea78f authored by Karol Herbst's avatar Karol Herbst :crab:
Browse files

nouveau: add debug option to sync pushbuffer submissions


Signed-off-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
Reviewed-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
parent 91c3eb17
Branches master
No related tags found
1 merge request!65nouveau: some debugging enhancements
Checking pipeline status
......@@ -13,6 +13,7 @@
/*
* 0x00000001 dump all pushbuffers
* 0x00000002 submit pushbuffers synchronously
* 0x80000000 if compiled with SIMULATE return -EINVAL for all pb submissions
*/
drm_private extern uint32_t nouveau_debug;
......
......@@ -339,6 +339,8 @@ pushbuf_submit(struct nouveau_pushbuf *push, struct nouveau_object *chan)
req.suffix0 = nvpb->suffix0;
req.suffix1 = nvpb->suffix1;
req.vram_available = 0; /* for valgrind */
if (dbg_on(1))
req.vram_available |= NOUVEAU_GEM_PUSHBUF_SYNC;
req.gart_available = 0;
if (dbg_on(0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment