turnip: Set drmFormatModifierTilingFeatures
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Tue, 15 Feb 2022 15:08:14 +0000 (17:08 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 28 Feb 2022 22:53:40 +0000 (22:53 +0000)
commit95fabff8dea94eb8dfb49871034df8fc390d0e68
tree8708d3c0169aca81156114227a585928cadc7493
parent473f48863904084b087d8cca0c6e6032be2e9d32
turnip: Set drmFormatModifierTilingFeatures

From Vulkan spec for VkDrmFormatModifierProperties2EXT:

 "drmFormatModifierTilingFeatures is a bitmask of VkFormatFeatureFlagBits
  that are supported by any image created with format and drmFormatModifier."

 "The returned drmFormatModifierTilingFeatures must contain at least one bit."

 "Therefore, if the returned drmFormatModifier is DRM_FORMAT_MOD_LINEAR,
  then drmFormatModifierPlaneCount must equal the format planecount, and
  drmFormatModifierTilingFeatures must be identical to the
  VkFormatProperties2::linearTilingFeatures returned in the same pNext chain."

Relevant tests: dEQP-VK.drm_format_modifiers.*

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15032>
src/freedreno/vulkan/tu_formats.c