diff options
author | Alex Smith <[email protected]> | 2018-10-18 17:29:37 +0100 |
---|---|---|
committer | Alex Smith <[email protected]> | 2018-10-24 09:40:02 +0100 |
commit | 6c56c1fbd43e4f45c55684e5e2650a9cee4c5ba6 (patch) | |
tree | 9cff35c18bda059d5b4db7d8943fde0710419259 | |
parent | 3112da346bd006876d9ac23a781b0a3d0a366653 (diff) |
anv: Allow presenting via a different GPU
anv_GetPhysicalDeviceSurfaceSupportKHR will already return success for
this, but anv_GetPhysicalDevice{Xcb,Xlib}PresentationSupportKHR do not.
Apps which check for presentation support via the latter (all Feral
Vulkan games at least) will therefore fail.
This allows me to render on an Intel GPU and present to a display
connected to an AMD card (tested HD 530 + Vega 64).
v2: Rebase on current master.
Signed-off-by: Alex Smith <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/intel/vulkan/anv_wsi_x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_wsi_x11.c b/src/intel/vulkan/anv_wsi_x11.c index bfa76e88e79..7a27ceab64f 100644 --- a/src/intel/vulkan/anv_wsi_x11.c +++ b/src/intel/vulkan/anv_wsi_x11.c @@ -41,7 +41,7 @@ VkBool32 anv_GetPhysicalDeviceXcbPresentationSupportKHR( return wsi_get_physical_device_xcb_presentation_support( &device->wsi_device, queueFamilyIndex, - false, + true, connection, visual_id); } @@ -56,7 +56,7 @@ VkBool32 anv_GetPhysicalDeviceXlibPresentationSupportKHR( return wsi_get_physical_device_xcb_presentation_support( &device->wsi_device, queueFamilyIndex, - false, + true, XGetXCBConnection(dpy), visualID); } |