turnip: simplify tu_physical_device_get_format_properties
authorJonathan Marek <jonathan@marek.ca>
Tue, 21 Jan 2020 13:30:40 +0000 (08:30 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 18:34:07 +0000 (18:34 +0000)
commit8aa5d968646d856d376ad44ef2963c2dbd4b3aa7
treedec4c3dba5c0a7a4b2e0f7c365d7b74ffea3333f
parentb7e22b7a3523ac1a81c8d90fd30735d97dd48bf3
turnip: simplify tu_physical_device_get_format_properties

Fixes the "bad VkImageTiling" error when tiling is
VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Acked-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3485>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3485>
src/freedreno/vulkan/tu_formats.c