From 828b8dbce48a65c62330efab399d2a79496f0857 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 14 Oct 2016 00:42:56 +0100 Subject: anv/wsi: switch to using VkDevice in swapchain Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_wsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/vulkan/anv_wsi.c') 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), -- cgit v1.2.3