mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
radv/meta: stop initializing RT accel structs
They are already always compiled on-demand. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32809>
This commit is contained in:
parent
853c99260b
commit
f528c9e8f5
1 changed files with 4 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue