anv/tests: Silence unused parameter warnings in main
[mesa.git] / src / intel / vulkan / anv_wsi_x11.c
index 31369c05902b64209178fcac214c2fbcc7f327c5..9a50b17f99937b48fc93ac85f8952af142b5c642 100644 (file)
 #include <xcb/dri3.h>
 #include <xcb/present.h>
 
-#include "anv_private.h"
 #include "wsi_common_x11.h"
-
-#include "vk_format_info.h"
-#include "util/hash_table.h"
+#include "anv_private.h"
 
 VkBool32 anv_GetPhysicalDeviceXcbPresentationSupportKHR(
     VkPhysicalDevice                            physicalDevice,
@@ -41,10 +38,10 @@ VkBool32 anv_GetPhysicalDeviceXcbPresentationSupportKHR(
 {
    ANV_FROM_HANDLE(anv_physical_device, device, physicalDevice);
 
-   return anv_get_physical_device_xcb_presentation_support(
+   return wsi_get_physical_device_xcb_presentation_support(
       &device->wsi_device,
-      &device->instance->alloc,
-      queueFamilyIndex, connection, visual_id);
+      queueFamilyIndex,
+      connection, visual_id);
 }
 
 VkBool32 anv_GetPhysicalDeviceXlibPresentationSupportKHR(
@@ -55,10 +52,10 @@ VkBool32 anv_GetPhysicalDeviceXlibPresentationSupportKHR(
 {
    ANV_FROM_HANDLE(anv_physical_device, device, physicalDevice);
 
-   return anv_get_physical_device_xcb_presentation_support(
+   return wsi_get_physical_device_xcb_presentation_support(
       &device->wsi_device,
-      &device->instance->alloc,
-      queueFamilyIndex, XGetXCBConnection(dpy), visualID);
+      queueFamilyIndex,
+      XGetXCBConnection(dpy), visualID);
 }
 
 VkResult anv_CreateXcbSurfaceKHR(
@@ -76,7 +73,7 @@ VkResult anv_CreateXcbSurfaceKHR(
    else
      alloc = &instance->alloc;
 
-   return anv_create_xcb_surface(alloc, pCreateInfo, pSurface);
+   return wsi_create_xcb_surface(alloc, pCreateInfo, pSurface);
 }
 
 VkResult anv_CreateXlibSurfaceKHR(
@@ -95,5 +92,5 @@ VkResult anv_CreateXlibSurfaceKHR(
    else
      alloc = &instance->alloc;
 
-   return anv_create_xlib_surface(alloc, pCreateInfo, pSurface);
+   return wsi_create_xlib_surface(alloc, pCreateInfo, pSurface);
 }