mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
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:
parent
abf995b1da
commit
a9eddf9edc
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue