vulkan: drop always-true param
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 25 Oct 2018 10:15:38 +0000 (11:15 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Fri, 26 Oct 2018 17:33:11 +0000 (18:33 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/amd/vulkan/radv_wsi_x11.c
src/intel/vulkan/anv_wsi_x11.c
src/vulkan/wsi/wsi_common_x11.c
src/vulkan/wsi/wsi_common_x11.h

index f3ebc791e2dc8a8fe8d83e5851cb9b6667a84310..acad74d3cf2a4d48d3ce94a59bb7e12429d7c68e 100644 (file)
@@ -45,7 +45,6 @@ VkBool32 radv_GetPhysicalDeviceXcbPresentationSupportKHR(
    return wsi_get_physical_device_xcb_presentation_support(
       &device->wsi_device,
       queueFamilyIndex,
-      true,
       connection, visual_id);
 }
 
@@ -60,7 +59,6 @@ VkBool32 radv_GetPhysicalDeviceXlibPresentationSupportKHR(
    return wsi_get_physical_device_xcb_presentation_support(
       &device->wsi_device,
       queueFamilyIndex,
-      true,
       XGetXCBConnection(dpy), visualID);
 }
 
index 7a27ceab64fecbfe199b68155852fb9522c311d9..9a50b17f99937b48fc93ac85f8952af142b5c642 100644 (file)
@@ -41,7 +41,6 @@ VkBool32 anv_GetPhysicalDeviceXcbPresentationSupportKHR(
    return wsi_get_physical_device_xcb_presentation_support(
       &device->wsi_device,
       queueFamilyIndex,
-      true,
       connection, visual_id);
 }
 
@@ -56,7 +55,6 @@ VkBool32 anv_GetPhysicalDeviceXlibPresentationSupportKHR(
    return wsi_get_physical_device_xcb_presentation_support(
       &device->wsi_device,
       queueFamilyIndex,
-      true,
       XGetXCBConnection(dpy), visualID);
 }
 
index 6eb72827eda5a6ce67c7767958d15118e9c42601..c740726fe54746f8bfc3bb1e0273f00d3695765d 100644 (file)
@@ -375,7 +375,6 @@ visual_has_alpha(xcb_visualtype_t *visual, unsigned depth)
 VkBool32 wsi_get_physical_device_xcb_presentation_support(
     struct wsi_device *wsi_device,
     uint32_t                                    queueFamilyIndex,
-    bool can_handle_different_gpu,
     xcb_connection_t*                           connection,
     xcb_visualid_t                              visual_id)
 {
@@ -388,10 +387,6 @@ VkBool32 wsi_get_physical_device_xcb_presentation_support(
    if (!wsi_x11_check_for_dri3(wsi_conn))
       return false;
 
-   if (!can_handle_different_gpu)
-      if (!wsi_x11_check_dri3_compatible(wsi_device, connection))
-         return false;
-
    unsigned visual_depth;
    if (!connection_get_visualtype(connection, visual_id, &visual_depth))
       return false;
index 99b1bcdc6fd73487b3df20a7674782b24ab4b78c..e4b1e94a8c8c9d4bbed6f628627b76877e928c73 100644 (file)
@@ -28,7 +28,6 @@
 VkBool32 wsi_get_physical_device_xcb_presentation_support(
     struct wsi_device *wsi_device,
     uint32_t                                    queueFamilyIndex,
-    bool can_handle_different_gpu,
     xcb_connection_t*                           connection,
     xcb_visualid_t                              visual_id);