radeonsi: also dump shaders on a VM fault
authorMarek Olšák <marek.olsak@amd.com>
Thu, 25 Feb 2016 16:54:01 +0000 (17:54 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 29 Feb 2016 23:18:54 +0000 (00:18 +0100)
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeonsi/si_debug.c

index 7c2b745a7de4cef46926c3ae7578d227d1ee0f27..eb0cabb9f2f461bf85627277fcc0ff7e872ee939 100644 (file)
@@ -781,8 +781,7 @@ void si_check_vm_faults(struct si_context *sctx)
        fprintf(f, "Device name: %s\n\n", screen->get_name(screen));
        fprintf(f, "Failing VM page: 0x%08x\n\n", addr);
 
-       si_dump_last_bo_list(sctx, f);
-       si_dump_last_ib(sctx, f);
+       si_dump_debug_state(&sctx->b.b, f, 0);
        fclose(f);
 
        fprintf(stderr, "Detected a VM fault, exiting...\n");