diff options
author | Marek Olšák <[email protected]> | 2017-08-10 12:22:33 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-08-11 20:38:29 +0200 |
commit | b420680edec636127360c00442f20a8afd6377cc (patch) | |
tree | cd7e344648fe41a2d60924d5329edf7c70a2e1d4 /src/gallium | |
parent | d1285a710329dca907ebab0154b6c16b89b945ef (diff) |
gallium/radeon: only pass shader-specific debug flags to the disk shader cache
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium')
-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); } } |