turnip: support VkImageDrmFormatModifierExplicitCreateInfoEXT
authorJonathan Marek <jonathan@marek.ca>
Tue, 12 May 2020 23:51:29 +0000 (19:51 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 27 May 2020 04:02:58 +0000 (04:02 +0000)
commitddfd2e626a51373f88f2a58701304e6403450705
tree8b9cc621e1d9de0708b5c92980fd8c10d4cfad7c
parentda409fb7b8c997de28db4016c788abff14bd8c57
turnip: support VkImageDrmFormatModifierExplicitCreateInfoEXT

This will be used to import images which have different layout from what
turnip uses by default. For example non-UBWC (linear) images from the video
decoder on some hardware have a 512 pitch alignment.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4596>
src/freedreno/vulkan/tu_android.c
src/freedreno/vulkan/tu_image.c
src/freedreno/vulkan/tu_private.h