summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_wsi_x11.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-10-13 05:26:03 +0100
committerDave Airlie <airlied@redhat.com>2016-10-19 10:15:42 +1000
commit467d161e6a050bb2e55278340d235b91c2ffa5df (patch)
tree56d578b28ce525b22c20da43cd20ef146441b217 /src/intel/vulkan/anv_wsi_x11.c
parentb8e7460563e9a92f81158c4b02771aa2636ac373 (diff)
downloadexternal_mesa3d-467d161e6a050bb2e55278340d235b91c2ffa5df.zip
external_mesa3d-467d161e6a050bb2e55278340d235b91c2ffa5df.tar.gz
external_mesa3d-467d161e6a050bb2e55278340d235b91c2ffa5df.tar.bz2
anv/wsi: remove device from get_support interface
replace with wsi_device and allocator. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/intel/vulkan/anv_wsi_x11.c')
-rw-r--r--src/intel/vulkan/anv_wsi_x11.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_wsi_x11.c b/src/intel/vulkan/anv_wsi_x11.c
index 6eb06c3..f438e5b 100644
--- a/src/intel/vulkan/anv_wsi_x11.c
+++ b/src/intel/vulkan/anv_wsi_x11.c
@@ -306,7 +306,8 @@ x11_surface_get_window(VkIcdSurfaceBase *icd_surface)
static VkResult
x11_surface_get_support(VkIcdSurfaceBase *icd_surface,
- struct anv_physical_device *device,
+ struct anv_wsi_device *wsi_device,
+ const VkAllocationCallbacks *alloc,
uint32_t queueFamilyIndex,
VkBool32* pSupported)
{
@@ -314,7 +315,7 @@ x11_surface_get_support(VkIcdSurfaceBase *icd_surface,
xcb_window_t window = x11_surface_get_window(icd_surface);
struct wsi_x11_connection *wsi_conn =
- wsi_x11_get_connection(&device->wsi_device, &device->instance->alloc, conn);
+ wsi_x11_get_connection(wsi_device, alloc, conn);
if (!wsi_conn)
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);