Skip to content

radv: fix format feature reporting for modifiers

Simon Ser requested to merge emersion/mesa:radv-modifiers-features into master

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: 6c83e3ea ("radv: Add format modifier format queries.")

cc @bnieuwenhuizen

Merge request reports