summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_wsi.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-10-14 00:42:56 +0100
committerDave Airlie <[email protected]>2016-10-19 10:15:42 +1000
commit828b8dbce48a65c62330efab399d2a79496f0857 (patch)
treeaddba9ea26e2d1c764f842a1afb62767fa822b1f /src/intel/vulkan/anv_wsi.c
parent65420013455821e570dc52e5e9cbe9cfbed1dab5 (diff)
anv/wsi: switch to using VkDevice in swapchain
Reviewed-by: Jason Ekstrand <[email protected]>
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 5b94e755751..f91e6f66304 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),