anv/wsi: drop device from get caps
authorDave Airlie <airlied@redhat.com>
Thu, 13 Oct 2016 04:27:56 +0000 (05:27 +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 a8ac3a1c3cc22d2dac90c35268e4674042ca1c7f..bd20cedd13276dbdc5ce6272e8b5327deda90422 100644 (file)
@@ -93,7 +93,7 @@ VkResult anv_GetPhysicalDeviceSurfaceCapabilitiesKHR(
    ANV_FROM_HANDLE(_VkIcdSurfaceBase, surface, _surface);
    struct anv_wsi_interface *iface = device->wsi[surface->platform];
 
-   return iface->get_capabilities(surface, device, pSurfaceCapabilities);
+   return iface->get_capabilities(surface, pSurfaceCapabilities);
 }
 
 VkResult anv_GetPhysicalDeviceSurfaceFormatsKHR(
index 2566fa4d3d60efc682cb19664ba0f61e7e61a3e6..2bb8ee3be7f530c732adf29f278728c58e04a077 100644 (file)
@@ -34,7 +34,6 @@ struct anv_wsi_interface {
                            uint32_t queueFamilyIndex,
                            VkBool32* pSupported);
    VkResult (*get_capabilities)(VkIcdSurfaceBase *surface,
-                                struct anv_physical_device *device,
                                 VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
    VkResult (*get_formats)(VkIcdSurfaceBase *surface,
                            struct anv_physical_device *device,
index a811d485323d5690373ee076912a383126cfbe24..2563dd75692fd63581887e7283e78231c63bb1a5 100644 (file)
@@ -348,7 +348,6 @@ static const VkPresentModeKHR present_modes[] = {
 
 static VkResult
 wsi_wl_surface_get_capabilities(VkIcdSurfaceBase *surface,
-                                struct anv_physical_device *device,
                                 VkSurfaceCapabilitiesKHR* caps)
 {
    caps->minImageCount = MIN_NUM_IMAGES;
index 179c75ace1fab27a275244709c85f7251b794e9c..fce3451481d76b1522fc9de306e6131cf375d8a0 100644 (file)
@@ -325,7 +325,6 @@ x11_surface_get_support(VkIcdSurfaceBase *icd_surface,
 
 static VkResult
 x11_surface_get_capabilities(VkIcdSurfaceBase *icd_surface,
-                             struct anv_physical_device *device,
                              VkSurfaceCapabilitiesKHR *caps)
 {
    xcb_connection_t *conn = x11_surface_get_connection(icd_surface);