[Mesa-dev] [PATCH 02/22] anv/wsi: drop get present modes device arg

Dave Airlie airlied at gmail.com
Mon Oct 17 04:24:25 UTC 2016


From: Dave Airlie <airlied at redhat.com>

---
 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 fc35572..a8ac3a1 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 f502677..2566fa4 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 35de428..a811d48 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 5d025c5..179c75a 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.5.5



More information about the mesa-dev mailing list