radeonsi/compute: Add some more debug printfs
authorTom Stellard <thomas.stellard@amd.com>
Tue, 19 Jul 2016 15:25:06 +0000 (15:25 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 16 Sep 2016 22:51:06 +0000 (22:51 +0000)
src/gallium/drivers/radeonsi/si_compute.c

index d9882141444f9a521712894bfac4bb98c5684b39..56b511848c96edda5e3f5e3a4cd2baf384f0ae2e 100644 (file)
@@ -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));