anv: Refactor get_image_format_properties() - ASTC
authorChad Versace <chadversary@chromium.org>
Fri, 3 Nov 2017 01:26:23 +0000 (18:26 -0700)
committerChad Versace <chadversary@chromium.org>
Fri, 10 Nov 2017 00:01:59 +0000 (16:01 -0800)
commit096fc6915b580b496aa785d5d44499cdbc28137b
treeea41f68965d731c4754d7985bbb51151093dc8a7
parent8ae4e97536476b1a6f6e36c7c73e00d09940e5b3
anv: Refactor get_image_format_properties() - ASTC

Teach it to calculate the format features for ASTC.

The goal is to incrementally fix get_image_format_properties() to return
a correct result.  Currently, it returns incorrect VkFormatFeatureFlags
which the caller must clean up.

v2: New commit message

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