aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-03-10 12:18:07 +0100
committerMarek Olšák <[email protected]>2017-03-13 23:34:52 +0100
commitcdbe4990cda2d0b40f86047dbb65851c22632750 (patch)
treeccaa3fe371dfb64bf845d6358f74ddd0e766134a
parent71a2e4e9452a6890197f8b629b2d8359bdd58913 (diff)
gallium/radeon: disable the shader cache if dumping shaders
otherwise, cached shaders aren't dumped. Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r--src/gallium/drivers/radeon/r600_pipe_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
index 7eb457f8e1d..b3b925e09c6 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c
@@ -785,6 +785,11 @@ static const char* r600_get_chip_name(struct r600_common_screen *rscreen)
static void r600_disk_cache_create(struct r600_common_screen *rscreen)
{
+ /* Don't use the cache if shader dumping is enabled. */
+ if (rscreen->debug_flags &
+ (DBG_FS | DBG_VS | DBG_TCS | DBG_TES | DBG_GS | DBG_PS | DBG_CS))
+ return;
+
uint32_t mesa_timestamp;
if (disk_cache_get_function_timestamp(r600_disk_cache_create,
&mesa_timestamp)) {