From f528c9e8f54c8dee41a21ce52c5446128de8424a Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 30 Dec 2024 17:49:01 +0100 Subject: [PATCH] radv/meta: stop initializing RT accel structs They are already always compiled on-demand. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/meta/radv_meta.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/amd/vulkan/meta/radv_meta.c b/src/amd/vulkan/meta/radv_meta.c index a13128759c4..d6f72698bb9 100644 --- a/src/amd/vulkan/meta/radv_meta.c +++ b/src/amd/vulkan/meta/radv_meta.c @@ -444,8 +444,6 @@ radv_device_init_meta(struct radv_device *device) .pfnFree = meta_free, }; - bool loaded_cache = radv_load_meta_pipeline(device); - result = vk_meta_device_init(&device->vk, &device->meta_state.device); if (result != VK_SUCCESS) return result; @@ -469,18 +467,10 @@ radv_device_init_meta(struct radv_device *device) return result; } - if (device->vk.enabled_extensions.KHR_acceleration_structure) { - if (device->vk.enabled_features.nullDescriptor) { - result = radv_device_init_null_accel_struct(device); - if (result != VK_SUCCESS) - return result; - } - - if (loaded_cache) { - result = radv_device_init_accel_struct_build_state(device); - if (result != VK_SUCCESS) - return result; - } + if (device->vk.enabled_features.nullDescriptor) { + result = radv_device_init_null_accel_struct(device); + if (result != VK_SUCCESS) + return result; } return VK_SUCCESS;