anv: Allow presenting via a different GPU
authorAlex Smith <asmith@feralinteractive.com>
Thu, 18 Oct 2018 16:29:37 +0000 (17:29 +0100)
committerAlex Smith <asmith@feralinteractive.com>
Wed, 24 Oct 2018 08:40:02 +0000 (09:40 +0100)
commit6c56c1fbd43e4f45c55684e5e2650a9cee4c5ba6
tree9cff35c18bda059d5b4db7d8943fde0710419259
parent3112da346bd006876d9ac23a781b0a3d0a366653
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 <asmith@feralinteractive.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_wsi_x11.c