From: Marek Olšák Date: Tue, 26 Jan 2016 21:16:55 +0000 (+0100) Subject: radeonsi: dump SPI_PS_INPUT values along with shader stats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57271d5364bb84fd5c6b6a6baaf8d81bae8c53c1;p=mesa.git radeonsi: dump SPI_PS_INPUT values along with shader stats Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 85203e046fc..bd45d4ae8db 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -4039,6 +4039,13 @@ static void si_shader_dump_stats(struct si_screen *sscreen, max_simd_waves = MIN2(max_simd_waves, 16384 / lds_per_wave); if (r600_can_dump_shader(&sscreen->b, processor)) { + if (processor == TGSI_PROCESSOR_FRAGMENT) { + fprintf(stderr, "*** SHADER CONFIG ***\n" + "SPI_PS_INPUT_ADDR = 0x%04x\n" + "SPI_PS_INPUT_ENA = 0x%04x\n", + conf->spi_ps_input_addr, conf->spi_ps_input_ena); + } + fprintf(stderr, "*** SHADER STATS ***\n" "SGPRS: %d\n" "VGPRS: %d\n"