mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
radv/meta: move vk_meta_device_init() to radv_device_init_meta()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32571>
This commit is contained in:
parent
cad6e1ea09
commit
310e03c8d3
2 changed files with 6 additions and 6 deletions
|
|
@ -447,6 +447,12 @@ radv_device_init_meta(struct radv_device *device)
|
|||
bool loaded_cache = radv_load_meta_pipeline(device);
|
||||
bool on_demand = !loaded_cache;
|
||||
|
||||
result = vk_meta_device_init(&device->vk, &device->meta_state.device);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
|
||||
device->meta_state.device.pipeline_cache = device->meta_state.cache;
|
||||
|
||||
mtx_init(&device->meta_state.mtx, mtx_plain);
|
||||
|
||||
result = radv_device_init_meta_clear_state(device, on_demand);
|
||||
|
|
|
|||
|
|
@ -737,12 +737,6 @@ radv_device_init_accel_struct_build_state(struct radv_device *device)
|
|||
device->meta_state.accel_struct_build.radix_sort = vk_create_radix_sort_u64(
|
||||
radv_device_to_handle(device), &device->meta_state.alloc, device->meta_state.cache, radix_sort_config);
|
||||
|
||||
result = vk_meta_device_init(&device->vk, &device->meta_state.device);
|
||||
if (result != VK_SUCCESS)
|
||||
goto exit;
|
||||
|
||||
device->meta_state.device.pipeline_cache = device->meta_state.cache;
|
||||
|
||||
device->vk.as_build_ops = &build_ops;
|
||||
device->vk.write_buffer_cp = radv_write_buffer_cp;
|
||||
device->vk.flush_buffer_write_cp = radv_flush_buffer_write_cp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue