anv: Fix get_image_format_properties() - 3-channel formats
authorChad Versace <chadversary@chromium.org>
Fri, 3 Nov 2017 19:25:51 +0000 (12:25 -0700)
committerChad Versace <chadversary@chromium.org>
Fri, 10 Nov 2017 00:01:59 +0000 (16:01 -0800)
commiteaa49ec3fc21fa98d53a9d020d7665eb7ac87eed
treeed9150b4389a10bb4de05ac92530962813cc1632
parent6394e4a38077783f189f99322dbc1f5f2006f878
anv: Fix get_image_format_properties() - 3-channel formats

Teach it to calculate the format features for 3-channel formats.

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.

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