mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 16:50:10 +01:00
anv: Stop allocating WSI event fences off the instance
Fixes: 16eb390834 "anv: add VK_EXT_display_control to anv driver [v5]"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3461>
This commit is contained in:
parent
1ec84bd208
commit
f0519c9cf9
1 changed files with 2 additions and 2 deletions
|
|
@ -255,7 +255,7 @@ anv_RegisterDeviceEventEXT(VkDevice _device,
|
|||
struct anv_fence *fence;
|
||||
VkResult ret;
|
||||
|
||||
fence = vk_zalloc2(&device->instance->alloc, allocator, sizeof (*fence), 8,
|
||||
fence = vk_zalloc2(&device->alloc, allocator, sizeof (*fence), 8,
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
|
||||
if (!fence)
|
||||
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
|
@ -270,7 +270,7 @@ anv_RegisterDeviceEventEXT(VkDevice _device,
|
|||
if (ret == VK_SUCCESS)
|
||||
*_fence = anv_fence_to_handle(fence);
|
||||
else
|
||||
vk_free2(&device->instance->alloc, allocator, fence);
|
||||
vk_free2(&device->alloc, allocator, fence);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue