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
Karol Herbst 2021-05-05 14:14:30 +02:00
parent 91c3eb1700
commit cfbea78fdf
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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))