summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_wsi.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-01-16 21:23:48 +0100
committerBas Nieuwenhuizen <[email protected]>2017-01-16 22:15:22 +0100
commit8406f79d6a3511dc6bf4d9c2ab3a80828c363d3a (patch)
tree7a891f20214fa9469b46b3a6cb9c12fe30b63aff /src/amd/vulkan/radv_wsi.c
parent0baa639f76b8e62327709298bc14637e28f27701 (diff)
radv: Get physical device from radv_device instead of the instance.
Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_wsi.c')
-rw-r--r--src/amd/vulkan/radv_wsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c
index 002b3a85014..2f45961cf8c 100644
--- a/src/amd/vulkan/radv_wsi.c
+++ b/src/amd/vulkan/radv_wsi.c
@@ -251,7 +251,7 @@ VkResult radv_CreateSwapchainKHR(
RADV_FROM_HANDLE(radv_device, device, _device);
ICD_FROM_HANDLE(VkIcdSurfaceBase, surface, pCreateInfo->surface);
struct wsi_interface *iface =
- device->instance->physicalDevice.wsi_device.wsi[surface->platform];
+ device->physical_device->wsi_device.wsi[surface->platform];
struct wsi_swapchain *swapchain;
const VkAllocationCallbacks *alloc;
if (pAllocator)
@@ -259,7 +259,7 @@ VkResult radv_CreateSwapchainKHR(
else
alloc = &device->alloc;
VkResult result = iface->create_swapchain(surface, _device,
- &device->instance->physicalDevice.wsi_device,
+ &device->physical_device->wsi_device,
pCreateInfo,
alloc, &radv_wsi_image_fns,
&swapchain);