summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2016-07-19 15:25:06 +0000
committerTom Stellard <[email protected]>2016-09-16 22:51:06 +0000
commita2b8346fa6c96af6b3d83b9f9ebb1f500e0da5f1 (patch)
treef86ee0ab73f52c98dee2503f3efd20efa0939d3f /src
parentae0a4a1299f649ff550a0dfd59d60fc8b91df54f (diff)
radeonsi/compute: Add some more debug printfs
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_compute.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c
index d9882141444..56b511848c9 100644
--- a/src/gallium/drivers/radeonsi/si_compute.c
+++ b/src/gallium/drivers/radeonsi/si_compute.c
@@ -298,6 +298,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));