From 3966fbdc51f4d2cd7cce3cef653baed1a00eaf2a Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Fri, 17 Feb 2023 17:14:32 +0100 Subject: [PATCH] radv: Pre-compile BVH build shaders if there is a cache Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_meta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c index df11c6553be..9fa8ba7433a 100644 --- a/src/amd/vulkan/radv_meta.c +++ b/src/amd/vulkan/radv_meta.c @@ -503,7 +503,7 @@ radv_device_init_meta(struct radv_device *device) * Work around it by forcing ACO for now. */ bool use_llvm = device->physical_device->use_llvm; - if (use_llvm) { + if (loaded_cache || use_llvm) { device->physical_device->use_llvm = false; result = radv_device_init_accel_struct_build_state(device); device->physical_device->use_llvm = use_llvm;