pvr: fixup typos when allocating object

These objects should have been allocated with
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT as the last argument, not the specific
object type.

Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15521>
This commit is contained in:
Erik Faye-Lund 2022-03-23 13:22:42 +01:00
parent abf995b1da
commit a9eddf9edc
2 changed files with 2 additions and 2 deletions

View file

@ -1849,7 +1849,7 @@ VkResult pvr_CreateFramebuffer(VkDevice _device,
if (!vk_multialloc_zalloc2(&ma,
&device->vk.alloc,
pAllocator,
VK_OBJECT_TYPE_FRAMEBUFFER))
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT))
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
vk_object_base_init(&device->vk,

View file

@ -346,7 +346,7 @@ VkResult pvr_CreateRenderPass2(VkDevice _device,
if (!vk_multialloc_zalloc2(&ma,
&device->vk.alloc,
pAllocator,
VK_OBJECT_TYPE_RENDER_PASS)) {
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT)) {
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
}