summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_wsi.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-10-14 00:42:56 +0100
committerDave Airlie <airlied@redhat.com>2016-10-19 10:15:42 +1000
commit828b8dbce48a65c62330efab399d2a79496f0857 (patch)
treeaddba9ea26e2d1c764f842a1afb62767fa822b1f /src/intel/vulkan/anv_wsi.c
parent65420013455821e570dc52e5e9cbe9cfbed1dab5 (diff)
downloadexternal_mesa3d-828b8dbce48a65c62330efab399d2a79496f0857.zip
external_mesa3d-828b8dbce48a65c62330efab399d2a79496f0857.tar.gz
external_mesa3d-828b8dbce48a65c62330efab399d2a79496f0857.tar.bz2
anv/wsi: switch to using VkDevice in swapchain
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/intel/vulkan/anv_wsi.c')
-rw-r--r--src/intel/vulkan/anv_wsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c
index 5b94e75..f91e6f6 100644
--- a/src/intel/vulkan/anv_wsi.c
+++ b/src/intel/vulkan/anv_wsi.c
@@ -207,7 +207,7 @@ VkResult anv_QueuePresentKHR(
for (uint32_t i = 0; i < pPresentInfo->swapchainCount; i++) {
ANV_FROM_HANDLE(anv_swapchain, swapchain, pPresentInfo->pSwapchains[i]);
- assert(swapchain->device == queue->device);
+ assert(anv_device_from_handle(swapchain->device) == queue->device);
if (swapchain->fences[0] == VK_NULL_HANDLE) {
result = anv_CreateFence(anv_device_to_handle(queue->device),