radv: Determine memory type for import based on fd.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 25 Apr 2020 23:52:44 +0000 (01:52 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 28 Apr 2020 13:45:03 +0000 (15:45 +0200)
commit7262c743dc84d4efa778658bb77b10850c29e014
tree4b7555664a2d1365abeab282196c2669cb5097ea
parentf30983be3a87946083c58100d72717f9e522c949
radv: Determine memory type for import based on fd.

This would be necessary for an application to figure out if the
memory was allocated using a memory type with VK_MEMORY_PROPERTY_PROTECTED_BIT.

It also allows one to determine VRAM vs. GTT etc.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4751>
src/amd/vulkan/radv_device.c