anv/wsi: drop get present modes device arg
authorDave Airlie <airlied@redhat.com>
Thu, 13 Oct 2016 04:33:28 +0000 (05:33 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 19 Oct 2016 00:15:42 +0000 (10:15 +1000)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_wsi.c
src/intel/vulkan/anv_wsi.h
src/intel/vulkan/anv_wsi_wayland.c
src/intel/vulkan/anv_wsi_x11.c

index fc35572b244cebd88aacabf00f99bb3531083e64..a8ac3a1c3cc22d2dac90c35268e4674042ca1c7f 100644 (file)
@@ -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);
 }
 
index f502677dc343fec0dc5292f65fd41001e03281a5..2566fa4d3d60efc682cb19664ba0f61e7e61a3e6 100644 (file)
@@ -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,
index 35de4280bd276fb7be496b9ccfb9f840cf7d5eef..a811d485323d5690373ee076912a383126cfbe24 100644 (file)
@@ -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)
 {
index 5d025c5e906c77941e12189e921117d3dd9d7a0c..179c75ace1fab27a275244709c85f7251b794e9c 100644 (file)
@@ -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)
 {