radv: fix format feature reporting for modifiers
authorSimon Ser <contact@emersion.fr>
Thu, 1 Apr 2021 15:06:31 +0000 (17:06 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 6 Apr 2021 09:20:26 +0000 (09:20 +0000)
commit7499f84956f22efa1aa28a3675fcfa783c06b80f
treeab804856e38a411538ea89323beb0fa1d63b2cd8
parent292ac71a4a8eedcccce49bb9440b3b9445aeef91
radv: fix format feature reporting for modifiers

The format_feature_flags bitfield is derived from the modifier if
the tiling is set to VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT.
However radv will reset the tiling to either LINEAR or OPTIMAL if
the caller supplied a VkPhysicalDeviceImageDrmFormatModifierInfoEXT
in the chain.

Stop resetting the tiling, so that we can compute the correct feature
flags.

Signed-off-by: Simon Ser <contact@emersion.fr>
Fixes: 6c83e3ea98b7 ("radv: Add format modifier format queries.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9978>
src/amd/vulkan/radv_formats.c