[Mesa-dev] [PATCH 5/8] radeonsi: fix printing shaders and states on a VM fault

Marek Olšák maraeo at gmail.com
Thu Aug 18 19:46:41 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

This was missed while rewriting the PIPE_DUMP flags.
---
 src/gallium/drivers/radeonsi/si_debug.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c
index 7e75d3f..8ce9caf 100644
--- a/src/gallium/drivers/radeonsi/si_debug.c
+++ b/src/gallium/drivers/radeonsi/si_debug.c
@@ -820,21 +820,23 @@ void si_check_vm_faults(struct r600_common_context *ctx,
 	fprintf(f, "Device vendor: %s\n", screen->get_device_vendor(screen));
 	fprintf(f, "Device name: %s\n\n", screen->get_name(screen));
 	fprintf(f, "Failing VM page: 0x%08x\n\n", addr);
 
 	if (sctx->apitrace_call_number)
 		fprintf(f, "Last apitrace call: %u\n\n",
 			sctx->apitrace_call_number);
 
 	switch (ring) {
 	case RING_GFX:
-		si_dump_debug_state(&sctx->b.b, f, 0);
+		si_dump_debug_state(&sctx->b.b, f,
+				    PIPE_DUMP_CURRENT_STATES |
+				    PIPE_DUMP_CURRENT_SHADERS);
 		break;
 
 	case RING_DMA:
 		si_dump_dma(sctx, saved, f);
 		break;
 
 	default:
 		break;
 	}
 
-- 
2.7.4



More information about the mesa-dev mailing list