From ae64b7a08ccb48a9d64fb3317b87e8e13075b1bc Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Sat, 30 Jul 2022 17:07:02 +0200 Subject: [PATCH] vulkan: Fix descriptor set layout allocation scope Fixes: 949ce92 ("vulkan: Add a base struct for descriptor set layouts") Signed-off-by: Konstantin Seurer Reviewed-by: Jason Ekstrand Part-of: --- src/vulkan/runtime/vk_descriptor_set_layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/runtime/vk_descriptor_set_layout.c b/src/vulkan/runtime/vk_descriptor_set_layout.c index 6dd46056b75..5d50d557d20 100644 --- a/src/vulkan/runtime/vk_descriptor_set_layout.c +++ b/src/vulkan/runtime/vk_descriptor_set_layout.c @@ -45,7 +45,7 @@ vk_descriptor_set_layout_zalloc(struct vk_device *device, size_t size) * their own object. */ struct vk_descriptor_set_layout *layout = - vk_zalloc(&device->alloc, size, 8, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); + vk_zalloc(&device->alloc, size, 8, VK_SYSTEM_ALLOCATION_SCOPE_DEVICE); vk_descriptor_set_layout_init(device, layout);