[Mesa-dev] [PATCH 1/2] radeonsi/compute: Add some more debug printfs

Tom Stellard thomas.stellard at amd.com
Mon Jul 25 23:11:36 UTC 2016


---
 src/gallium/drivers/radeonsi/si_compute.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c
index 5a40286..949ab1a 100644
--- a/src/gallium/drivers/radeonsi/si_compute.c
+++ b/src/gallium/drivers/radeonsi/si_compute.c
@@ -299,6 +299,9 @@ static bool si_switch_compute_shader(struct si_context *sctx,
 	radeon_emit(cs, config->rsrc1);
 	radeon_emit(cs, config->rsrc2);
 
+	COMPUTE_DBG(sctx->screen, "COMPUTE_PGM_RSRC1: 0x%08x "
+		"COMPUTE_PGM_RSRC2: 0x%08x\n", config->rsrc1, config->rsrc2);
+
 	radeon_set_sh_reg(cs, R_00B860_COMPUTE_TMPRING_SIZE,
 	          S_00B860_WAVES(sctx->scratch_waves)
 	             | S_00B860_WAVESIZE(config->scratch_bytes_per_wave >> 10));
-- 
2.7.4



More information about the mesa-dev mailing list