<div dir="ltr"><div>Yeah, I saw this while I was working on the bus_info stuff and I'm not sure why we never enabled PRIME for Intel.  I think I may have had a reason but I have no idea what it was and I don't see a problem with it.</div><div><br></div><div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 23, 2018 at 10:32 AM Alex Smith <<a href="mailto:asmith@feralinteractive.com">asmith@feralinteractive.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">anv_GetPhysicalDeviceSurfaceSupportKHR will already return success for<br>
this, but anv_GetPhysicalDevice{Xcb,Xlib}PresentationSupportKHR do not.<br>
Apps which check for presentation support via the latter (all Feral<br>
Vulkan games at least) will therefore fail.<br>
<br>
This allows me to render on an Intel GPU and present to a display<br>
connected to an AMD card (tested HD 530 + Vega 64).<br>
<br>
v2: Rebase on current master.<br>
<br>
Signed-off-by: Alex Smith <<a href="mailto:asmith@feralinteractive.com" target="_blank">asmith@feralinteractive.com</a>><br>
---<br>
 src/intel/vulkan/anv_wsi_x11.c | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_wsi_x11.c b/src/intel/vulkan/anv_wsi_x11.c<br>
index bfa76e88e7..7a27ceab64 100644<br>
--- a/src/intel/vulkan/anv_wsi_x11.c<br>
+++ b/src/intel/vulkan/anv_wsi_x11.c<br>
@@ -41,7 +41,7 @@ VkBool32 anv_GetPhysicalDeviceXcbPresentationSupportKHR(<br>
    return wsi_get_physical_device_xcb_presentation_support(<br>
       &device->wsi_device,<br>
       queueFamilyIndex,<br>
-      false,<br>
+      true,<br>
       connection, visual_id);<br>
 }<br>
<br>
@@ -56,7 +56,7 @@ VkBool32 anv_GetPhysicalDeviceXlibPresentationSupportKHR(<br>
    return wsi_get_physical_device_xcb_presentation_support(<br>
       &device->wsi_device,<br>
       queueFamilyIndex,<br>
-      false,<br>
+      true,<br>
       XGetXCBConnection(dpy), visualID);<br>
 }<br>
<br>
-- <br>
2.14.4<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>