From b420680edec636127360c00442f20a8afd6377cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 10 Aug 2017 12:22:33 +0200 Subject: [PATCH] gallium/radeon: only pass shader-specific debug flags to the disk shader cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle Reviewed-by: Timothy Arceri --- src/gallium/drivers/radeon/r600_pipe_common.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); } } -- 2.30.2