Module: Mesa
Branch: main
Commit: 3806cd83f2dca485b27b4269eeb218f2733e33a2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3806cd83f2dca485b27b4269eeb218f2733e33a2

Author: Daniel Schürmann <[email protected]>
Date:   Sat Mar 18 16:26:38 2023 +0100

radv: skip pipeline caching with RADV_DEBUG=shaders

in order to create reproducible cache entries.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22029>

---

 src/amd/vulkan/radv_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index a171b079cf7..a2a30077219 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -3257,7 +3257,7 @@ bool
 radv_pipeline_capture_shaders(const struct radv_device *device, 
VkPipelineCreateFlags flags)
 {
    return (flags & 
VK_PIPELINE_CREATE_CAPTURE_INTERNAL_REPRESENTATIONS_BIT_KHR) ||
-          device->keep_shader_info;
+          (device->instance->debug_flags & RADV_DEBUG_DUMP_SHADERS) || 
device->keep_shader_info;
 }
 
 bool

Reply via email to