radv: Allow non-dedicated linear images and buffer.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 27 Jan 2020 15:50:23 +0000 (16:50 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 2 Feb 2020 16:47:14 +0000 (17:47 +0100)
commitd5fd8cd46eeedeabf8647c06489a755aea8f0080
tree9be24eeb25c2cccab17fc6f71c0a0f8caa100387
parent38f963226bdf8277826e80848d2a6b44cbabddd3
radv: Allow non-dedicated linear images and buffer.

Requested for virtualized Vulkan as they need to export memory to
map it.

Since radeonsi and the kernel assume an image without metadata is
linear, this should work just fine.

Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3583>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3583>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_formats.c