From 0e4abc3e1016f606f64dfdd3b90f69abbdfedbc9 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 13 Oct 2016 05:33:28 +0100 Subject: [PATCH] anv/wsi: drop get present modes device arg Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_wsi.c | 2 +- src/intel/vulkan/anv_wsi.h | 1 - src/intel/vulkan/anv_wsi_wayland.c | 1 - src/intel/vulkan/anv_wsi_x11.c | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c index fc35572b244..a8ac3a1c3cc 100644 --- a/src/intel/vulkan/anv_wsi.c +++ b/src/intel/vulkan/anv_wsi.c @@ -120,7 +120,7 @@ VkResult anv_GetPhysicalDeviceSurfacePresentModesKHR( ANV_FROM_HANDLE(_VkIcdSurfaceBase, surface, _surface); struct anv_wsi_interface *iface = device->wsi[surface->platform]; - return iface->get_present_modes(surface, device, pPresentModeCount, + return iface->get_present_modes(surface, pPresentModeCount, pPresentModes); } diff --git a/src/intel/vulkan/anv_wsi.h b/src/intel/vulkan/anv_wsi.h index f502677dc34..2566fa4d3d6 100644 --- a/src/intel/vulkan/anv_wsi.h +++ b/src/intel/vulkan/anv_wsi.h @@ -41,7 +41,6 @@ struct anv_wsi_interface { uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats); VkResult (*get_present_modes)(VkIcdSurfaceBase *surface, - struct anv_physical_device *device, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes); VkResult (*create_swapchain)(VkIcdSurfaceBase *surface, diff --git a/src/intel/vulkan/anv_wsi_wayland.c b/src/intel/vulkan/anv_wsi_wayland.c index 35de4280bd2..a811d485323 100644 --- a/src/intel/vulkan/anv_wsi_wayland.c +++ b/src/intel/vulkan/anv_wsi_wayland.c @@ -407,7 +407,6 @@ wsi_wl_surface_get_formats(VkIcdSurfaceBase *icd_surface, static VkResult wsi_wl_surface_get_present_modes(VkIcdSurfaceBase *surface, - struct anv_physical_device *device, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes) { diff --git a/src/intel/vulkan/anv_wsi_x11.c b/src/intel/vulkan/anv_wsi_x11.c index 5d025c5e906..179c75ace1f 100644 --- a/src/intel/vulkan/anv_wsi_x11.c +++ b/src/intel/vulkan/anv_wsi_x11.c @@ -403,7 +403,6 @@ x11_surface_get_formats(VkIcdSurfaceBase *surface, static VkResult x11_surface_get_present_modes(VkIcdSurfaceBase *surface, - struct anv_physical_device *device, uint32_t *pPresentModeCount, VkPresentModeKHR *pPresentModes) { -- 2.30.2