projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ec84bd
)
anv: Stop allocating WSI event fences off the instance
author
Jason Ekstrand
<jason@jlekstrand.net>
Sat, 18 Jan 2020 05:03:41 +0000
(23:03 -0600)
committer
Marge Bot
<eric+marge@anholt.net>
Mon, 20 Jan 2020 22:08:52 +0000
(22:08 +0000)
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>
src/intel/vulkan/anv_wsi_display.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_wsi_display.c
b/src/intel/vulkan/anv_wsi_display.c
index a6326c738de4545de5861b1a22d3c86866433120..d876d294c1caad69c4ca70b77ae5c2a94fe4e4a4 100644
(file)
--- 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;
}