anv: Fix get_image_format_properties() - YCbCr
authorChad Versace <chadversary@chromium.org>
Fri, 3 Nov 2017 19:32:00 +0000 (12:32 -0700)
committerChad Versace <chadversary@chromium.org>
Fri, 10 Nov 2017 00:01:59 +0000 (16:01 -0800)
commit17ac61a2c9bf3d52d311be1c00eebe2afdf94d3f
treea8dcba1d1eb96e135555001ef61854b3409c3df7
parenteaa49ec3fc21fa98d53a9d020d7665eb7ac87eed
anv: Fix get_image_format_properties() - YCbCr

Teach it to calculate the format features for YCbCr.

The goal (which is completed in this patch) is to incrementally fix
get_image_format_properties() to return a correct result.  Previously,
it returned incorrect VkFormatFeatureFlags which the caller needed clean
up.

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