vulkan/wsi/radv: add initial prime support (v1.1)
This is a complete rewrite of my previous rfc patches. This adds the ability to present to a different GPU that rendering using a driver side operation that can copy from the tiled to linear shared image. This does prime support completely in the swapchain present code, and each queue has a precreated command buffer for each image and for the each queue family. This means presenting should work on graphics and compute queues and transfer in the future. v1.1: initialise needs_linear_copy in swapchain. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Tested-by: Mike Lothian <mike@fireburn.co.uk> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -42,7 +42,7 @@ VkBool32 anv_GetPhysicalDeviceXcbPresentationSupportKHR(
|
||||
&device->wsi_device,
|
||||
&device->instance->alloc,
|
||||
queueFamilyIndex,
|
||||
device->local_fd,
|
||||
device->local_fd, false,
|
||||
connection, visual_id);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ VkBool32 anv_GetPhysicalDeviceXlibPresentationSupportKHR(
|
||||
&device->wsi_device,
|
||||
&device->instance->alloc,
|
||||
queueFamilyIndex,
|
||||
device->local_fd,
|
||||
device->local_fd, false,
|
||||
XGetXCBConnection(dpy), visualID);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user