summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_wsi_wayland.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-10-13 05:32:41 +0100
committerDave Airlie <[email protected]>2016-10-19 10:15:42 +1000
commitc264c272a5a7c6badea6e443ce78d286540798b3 (patch)
tree3914928c51ced3b0e275aec664980ee94217af26 /src/intel/vulkan/anv_wsi_wayland.c
parent467d161e6a050bb2e55278340d235b91c2ffa5df (diff)
anv/wsi: drop device from get format
Just use the wsi_device instead. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_wsi_wayland.c')
-rw-r--r--src/intel/vulkan/anv_wsi_wayland.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_wsi_wayland.c b/src/intel/vulkan/anv_wsi_wayland.c
index d0b7606ecae..0c55ad2efa2 100644
--- a/src/intel/vulkan/anv_wsi_wayland.c
+++ b/src/intel/vulkan/anv_wsi_wayland.c
@@ -375,13 +375,13 @@ wsi_wl_surface_get_capabilities(VkIcdSurfaceBase *surface,
static VkResult
wsi_wl_surface_get_formats(VkIcdSurfaceBase *icd_surface,
- struct anv_physical_device *device,
+ struct anv_wsi_device *wsi_device,
uint32_t* pSurfaceFormatCount,
VkSurfaceFormatKHR* pSurfaceFormats)
{
VkIcdSurfaceWayland *surface = (VkIcdSurfaceWayland *)icd_surface;
struct wsi_wl_display *display =
- wsi_wl_get_display(&device->wsi_device, surface->display);
+ wsi_wl_get_display(wsi_device, surface->display);
uint32_t count = u_vector_length(&display->formats);