radv: add external memory support.
authorDave Airlie <airlied@redhat.com>
Thu, 3 Nov 2016 04:16:43 +0000 (04:16 +0000)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 5 Jun 2017 00:26:43 +0000 (02:26 +0200)
commit4ba2e6cbfab2ac5adc3d4fe1d35a32cc582781dc
tree7a319495088a8f8fcc8ae16ccec34b4857c03823
parentd515b420ddaa3b83cc565567d0c229e717aab06a
radv: add external memory support.

This adds support for exporting 2D images, to an
opaque fd.

This implements the:
VK_KHX_external_memory_capabilities
VK_KHX_external_memory
VK_KHX_external_memory_fd

extensions.

These are used by SteamVR, we should work with anv
to decide if we should ship these under an env
var or something.

v2 (Bas): - Don't expose the semaphore ext without implementing it.
          - Only export the capabilities ext as instance ext.
          - Implement radv_GetPhysicalDeviceExternalBufferPropertiesKHX.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_entrypoints_gen.py
src/amd/vulkan/radv_formats.c