nouveau: add debug option to sync pushbuffer submissions
Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>main
parent
91c3eb1700
commit
cfbea78fdf
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 0x00000001 dump all pushbuffers
|
* 0x00000001 dump all pushbuffers
|
||||||
|
* 0x00000002 submit pushbuffers synchronously
|
||||||
* 0x80000000 if compiled with SIMULATE return -EINVAL for all pb submissions
|
* 0x80000000 if compiled with SIMULATE return -EINVAL for all pb submissions
|
||||||
*/
|
*/
|
||||||
drm_private extern uint32_t nouveau_debug;
|
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.suffix0 = nvpb->suffix0;
|
||||||
req.suffix1 = nvpb->suffix1;
|
req.suffix1 = nvpb->suffix1;
|
||||||
req.vram_available = 0; /* for valgrind */
|
req.vram_available = 0; /* for valgrind */
|
||||||
|
if (dbg_on(1))
|
||||||
|
req.vram_available |= NOUVEAU_GEM_PUSHBUF_SYNC;
|
||||||
req.gart_available = 0;
|
req.gart_available = 0;
|
||||||
|
|
||||||
if (dbg_on(0))
|
if (dbg_on(0))
|
||||||
|
|
Loading…
Reference in New Issue