From: Marek Olšák Date: Thu, 10 Aug 2017 10:22:33 +0000 (+0200) Subject: gallium/radeon: only pass shader-specific debug flags to the disk shader cache X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b420680edec636127360c00442f20a8afd6377cc;p=mesa.git gallium/radeon: only pass shader-specific debug flags to the disk shader cache Reviewed-by: Nicolai Hähnle Reviewed-by: Timothy Arceri --- 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); } }