[Mesa-dev] [PATCH v2] anv: Allow presenting via a different GPU
Jason Ekstrand
jason at jlekstrand.net
Tue Oct 23 17:29:07 UTC 2018
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.
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
On Tue, Oct 23, 2018 at 10:32 AM Alex Smith <asmith at feralinteractive.com>
wrote:
> 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 at feralinteractive.com>
> ---
> src/intel/vulkan/anv_wsi_x11.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/intel/vulkan/anv_wsi_x11.c
> b/src/intel/vulkan/anv_wsi_x11.c
> index bfa76e88e7..7a27ceab64 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);
> }
>
> --
> 2.14.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181023/cb96fed5/attachment.html>
More information about the mesa-dev
mailing list