mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 16:48:07 +02:00
vulkan: drop const for descriptor set
drivers should be able to update the reference count member of the vk_descriptor_set_layout struct Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19132>
This commit is contained in:
parent
5aa437a9f1
commit
9a7e93f1f6
2 changed files with 2 additions and 2 deletions
|
|
@ -117,7 +117,7 @@ vk_pipeline_layout_destroy(struct vk_device *device,
|
|||
|
||||
for (uint32_t s = 0; s < layout->set_count; s++) {
|
||||
if (layout->set_layouts[s] != NULL)
|
||||
vk_descriptor_set_layout_unref(device, (void *)layout->set_layouts[s]);
|
||||
vk_descriptor_set_layout_unref(device, layout->set_layouts[s]);
|
||||
}
|
||||
|
||||
vk_object_free(device, NULL, layout);
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ struct vk_pipeline_layout {
|
|||
uint32_t set_count;
|
||||
|
||||
/** Array of pointers to descriptor set layouts, indexed by set index */
|
||||
const struct vk_descriptor_set_layout *set_layouts[VK_MESA_PIPELINE_LAYOUT_MAX_SETS];
|
||||
struct vk_descriptor_set_layout *set_layouts[VK_MESA_PIPELINE_LAYOUT_MAX_SETS];
|
||||
|
||||
/** Destroy callback
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue