1971523410fd2235e13c617b6a1569f70486258d7Dave Airlie/* 2971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * Copyright © 2015 Intel Corporation 3971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * 4971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * Permission is hereby granted, free of charge, to any person obtaining a 5971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * copy of this software and associated documentation files (the "Software"), 6971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * to deal in the Software without restriction, including without limitation 7971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * and/or sell copies of the Software, and to permit persons to whom the 9971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * Software is furnished to do so, subject to the following conditions: 10971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * 11971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * The above copyright notice and this permission notice (including the next 12971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * paragraph) shall be included in all copies or substantial portions of the 13971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * Software. 14971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * 15971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 21971523410fd2235e13c617b6a1569f70486258d7Dave Airlie * IN THE SOFTWARE. 22971523410fd2235e13c617b6a1569f70486258d7Dave Airlie */ 23971523410fd2235e13c617b6a1569f70486258d7Dave Airlie#ifndef WSI_COMMON_X11_H 24971523410fd2235e13c617b6a1569f70486258d7Dave Airlie#define WSI_COMMON_X11_H 25971523410fd2235e13c617b6a1569f70486258d7Dave Airlie 26971523410fd2235e13c617b6a1569f70486258d7Dave Airlie#include "wsi_common.h" 27971523410fd2235e13c617b6a1569f70486258d7Dave Airlie 28ec0bc14a700c2503d834ac0763f4cfbe312998faDave AirlieVkBool32 wsi_get_physical_device_xcb_presentation_support( 29ec0bc14a700c2503d834ac0763f4cfbe312998faDave Airlie struct wsi_device *wsi_device, 30971523410fd2235e13c617b6a1569f70486258d7Dave Airlie VkAllocationCallbacks *alloc, 31971523410fd2235e13c617b6a1569f70486258d7Dave Airlie uint32_t queueFamilyIndex, 32971523410fd2235e13c617b6a1569f70486258d7Dave Airlie xcb_connection_t* connection, 33971523410fd2235e13c617b6a1569f70486258d7Dave Airlie xcb_visualid_t visual_id); 34971523410fd2235e13c617b6a1569f70486258d7Dave Airlie 35ec0bc14a700c2503d834ac0763f4cfbe312998faDave AirlieVkResult wsi_create_xcb_surface(const VkAllocationCallbacks *pAllocator, 36971523410fd2235e13c617b6a1569f70486258d7Dave Airlie const VkXcbSurfaceCreateInfoKHR *pCreateInfo, 37971523410fd2235e13c617b6a1569f70486258d7Dave Airlie VkSurfaceKHR *pSurface); 38971523410fd2235e13c617b6a1569f70486258d7Dave Airlie 39ec0bc14a700c2503d834ac0763f4cfbe312998faDave AirlieVkResult wsi_create_xlib_surface(const VkAllocationCallbacks *pAllocator, 40971523410fd2235e13c617b6a1569f70486258d7Dave Airlie const VkXlibSurfaceCreateInfoKHR *pCreateInfo, 41971523410fd2235e13c617b6a1569f70486258d7Dave Airlie VkSurfaceKHR *pSurface); 42971523410fd2235e13c617b6a1569f70486258d7Dave Airlie#endif 43