anv/image: Minor refactor of VkImageFormatProperties::sampleCounts
authorChad Versace <chad@kiwitree.net>
Sat, 8 Aug 2020 23:42:22 +0000 (18:42 -0500)
committerChad Versace <chad@kiwitree.net>
Tue, 17 Nov 2020 18:36:45 +0000 (10:36 -0800)
commit8c5b4b1e1dbf73317bbcb4e778bbd900995d6a89
tree81a9399950acbc44d1f866cc916f68dfb60a5dd1
parent2b3ec91326b7e9181a2c865e5e9e251466092c39
anv/image: Minor refactor of VkImageFormatProperties::sampleCounts

The code in anv_get_image_format_properties() that set sampleCounts
appears correct, but weirdly inconsistent. Clean the code to
consistently set sampleCounts in the same location as
maxExtent/maxMipLevels/maxArraySize.

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_formats.c