summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2020-01-17 23:03:41 -0600
committerDylan Baker <dylan@pnwbakers.com>2020-01-28 08:54:25 -0800
commitb6d98ba8215ea425fe0902effde77ea68ce2530e (patch)
tree37a46fb4e85e12e4b802ce09c4ed3a687b5e7d94 /src
parentf7d6048108fefffe16e0ff7f49ab0d4482842e07 (diff)
downloadmesa-b6d98ba8215ea425fe0902effde77ea68ce2530e.tar.gz
anv: Stop allocating WSI event fences off the instance
Fixes: 16eb390834d "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> (cherry picked from commit f0519c9cf9fdccf93b0c3b81b47911de2422b285)
Diffstat (limited to 'src')
-rw-r--r--src/intel/vulkan/anv_wsi_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_wsi_display.c b/src/intel/vulkan/anv_wsi_display.c
index 3212c235bab..60722eeb7a7 100644
--- a/src/intel/vulkan/anv_wsi_display.c
+++ b/src/intel/vulkan/anv_wsi_display.c
@@ -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;
}