summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/r600_pipe_common.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-12-27 21:24:47 +0100
committerMarek Olšák <marek.olsak@amd.com>2016-01-03 22:41:16 +0100
commitcd7f252b114b7771cde9bba698eddaa1b4b93ab4 (patch)
tree58ebad178db7af7551bfdce8c08aa8464a680e85 /src/gallium/drivers/radeon/r600_pipe_common.c
parentfd7000bd7897565a7a019a7ec3aacb832d696d22 (diff)
downloadexternal_mesa3d-cd7f252b114b7771cde9bba698eddaa1b4b93ab4.zip
external_mesa3d-cd7f252b114b7771cde9bba698eddaa1b4b93ab4.tar.gz
external_mesa3d-cd7f252b114b7771cde9bba698eddaa1b4b93ab4.tar.bz2
gallium/radeon: r600_can_dump_shader should get TGSI processor type directly
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_pipe_common.c')
-rw-r--r--src/gallium/drivers/radeon/r600_pipe_common.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
index 4bfb359..52c365e 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c
@@ -1011,13 +1011,9 @@ void r600_destroy_common_screen(struct r600_common_screen *rscreen)
}
bool r600_can_dump_shader(struct r600_common_screen *rscreen,
- const struct tgsi_token *tokens)
+ unsigned processor)
{
- /* Compute shader don't have tgsi_tokens */
- if (!tokens)
- return (rscreen->debug_flags & DBG_CS) != 0;
-
- switch (tgsi_get_processor_type(tokens)) {
+ switch (processor) {
case TGSI_PROCESSOR_VERTEX:
return (rscreen->debug_flags & DBG_VS) != 0;
case TGSI_PROCESSOR_TESS_CTRL: