radv: Use vk_descriptor_set_layout

Use the common ref counting and the common destroy entrypoint.

Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17818>
This commit is contained in:
Konstantin Seurer
2022-07-30 17:35:57 +02:00
committed by Marge Bot
parent da2233a108
commit 19f8d33876
19 changed files with 60 additions and 108 deletions

View File

@@ -914,9 +914,9 @@ radv_device_finish_dgc_prepare_state(struct radv_device *device)
&device->meta_state.alloc);
radv_DestroyPipelineLayout(radv_device_to_handle(device),
device->meta_state.dgc_prepare.p_layout, &device->meta_state.alloc);
radv_DestroyDescriptorSetLayout(radv_device_to_handle(device),
device->meta_state.dgc_prepare.ds_layout,
&device->meta_state.alloc);
device->vk.dispatch_table.DestroyDescriptorSetLayout(radv_device_to_handle(device),
device->meta_state.dgc_prepare.ds_layout,
&device->meta_state.alloc);
}
VkResult