diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index 2acef6a93c6..95458d2e15b 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -877,10 +877,17 @@ static void r600_disk_cache_create(struct r600_common_screen *rscreen) } #endif if (res != -1) { + /* These flags affect shader compilation. */ + uint64_t shader_debug_flags = + rscreen->debug_flags & + (DBG_FS_CORRECT_DERIVS_AFTER_KILL | + DBG_SI_SCHED | + DBG_UNSAFE_MATH); + rscreen->disk_shader_cache = disk_cache_create(r600_get_family_name(rscreen), timestamp_str, - rscreen->debug_flags); + shader_debug_flags); free(timestamp_str); } } |