From 3806cd83f2dca485b27b4269eeb218f2733e33a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Sch=C3=BCrmann?= Date: Sat, 18 Mar 2023 16:26:38 +0100 Subject: [PATCH] radv: skip pipeline caching with RADV_DEBUG=shaders in order to create reproducible cache entries. Part-of: --- 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 a171b07..a2a3007 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 -- 2.7.4