vulkan/wsi/radv: add initial prime support (v1.1)
authorDave Airlie <airlied@redhat.com>
Wed, 23 Nov 2016 02:59:55 +0000 (12:59 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 26 Feb 2017 19:42:16 +0000 (05:42 +1000)
commitf695735ed61ea2f11f0fdf032a8ad2c99b6b064c
treef15f9f19ed80a64e59e2ad754f610e8e6b343aec
parent336b05c49a6c6ce915bbd6629da17321ecb72bee
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>
src/amd/vulkan/radv_meta.h
src/amd/vulkan/radv_meta_copy.c
src/amd/vulkan/radv_wsi.c
src/amd/vulkan/radv_wsi_x11.c
src/intel/vulkan/anv_wsi.c
src/intel/vulkan/anv_wsi_x11.c
src/vulkan/wsi/wsi_common.h
src/vulkan/wsi/wsi_common_wayland.c
src/vulkan/wsi/wsi_common_x11.c
src/vulkan/wsi/wsi_common_x11.h