diff options
author | Jason Ekstrand <[email protected]> | 2020-04-21 12:42:59 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-04 14:06:27 +0000 |
commit | a9158f795143fb8b333e6fe33b25c2a4e4d2da15 (patch) | |
tree | 774b48189a3df8257b9b11ca22448f0d5ccf3eec /src/intel/vulkan/anv_wsi.c | |
parent | 9d10bde5a878aac440ea34dfb304812cd00b231c (diff) |
vulkan,anv: Add a common base object type for VkDevice
We should keep this very minimal; I don't know that we need to go all
struct gl_context on it. However, this gives us at least a tiny base on
which we can start building some common functionality.
Reviewed-by: Lionel Landwerlin <[email protected]>
Acked-by: Kristian H. Kristensen <[email protected]>
Acked-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4690>
Diffstat (limited to 'src/intel/vulkan/anv_wsi.c')
-rw-r--r-- | src/intel/vulkan/anv_wsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c index dbb8d512cbd..3b4877a3abb 100644 --- a/src/intel/vulkan/anv_wsi.c +++ b/src/intel/vulkan/anv_wsi.c @@ -219,7 +219,7 @@ VkResult anv_CreateSwapchainKHR( if (pAllocator) alloc = pAllocator; else - alloc = &device->alloc; + alloc = &device->vk.alloc; return wsi_common_create_swapchain(wsi_device, _device, pCreateInfo, alloc, pSwapchain); @@ -236,7 +236,7 @@ void anv_DestroySwapchainKHR( if (pAllocator) alloc = pAllocator; else - alloc = &device->alloc; + alloc = &device->vk.alloc; wsi_common_destroy_swapchain(_device, swapchain, alloc); } |