summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_wsi_x11.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-10-14 06:36:17 +0100
committerDave Airlie <[email protected]>2016-10-19 10:15:43 +1000
commitec0bc14a700c2503d834ac0763f4cfbe312998fa (patch)
treeceb16baecd0050bf6ade26e6aec9f425bdbe2b31 /src/intel/vulkan/anv_wsi_x11.c
parent971523410fd2235e13c617b6a1569f70486258d7 (diff)
anv/wsi: remove all anv references from WSI common code
the WSI code should be now be clean for sharing. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_wsi_x11.c')
-rw-r--r--src/intel/vulkan/anv_wsi_x11.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/intel/vulkan/anv_wsi_x11.c b/src/intel/vulkan/anv_wsi_x11.c
index 31369c05902..60bc568ab0c 100644
--- a/src/intel/vulkan/anv_wsi_x11.c
+++ b/src/intel/vulkan/anv_wsi_x11.c
@@ -27,11 +27,8 @@
#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,7 +38,7 @@ 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);
@@ -55,7 +52,7 @@ 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);
@@ -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);
}