anv: Refactor get_image_format_properties() - Reduce params
authorChad Versace <chadversary@chromium.org>
Fri, 3 Nov 2017 19:20:21 +0000 (12:20 -0700)
committerChad Versace <chadversary@chromium.org>
Fri, 10 Nov 2017 00:01:59 +0000 (16:01 -0800)
commit6394e4a38077783f189f99322dbc1f5f2006f878
treeb2833cbd8033fbcc57a2f282b5d37101fd2b405e
parent66647074a455754393c6ad6be09acc03b1761a00
anv: Refactor get_image_format_properties() - Reduce params

Replace parameters 'enum isl_format' and 'struct anv_format_plane' with
new parameter 'const struct anv_format *'.

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