anv: modify the internal concept of format to express multiple planes
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 14 Mar 2017 17:20:07 +0000 (17:20 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 6 Oct 2017 10:46:03 +0000 (11:46 +0100)
commitbbc37007983a73bc0effae004dddcdee8ffef993
tree495cf038769dca42c42588b71fed5e33ed4fad79
parent18914715d1c2dc5861c9b76aa98c6b1debf5b711
anv: modify the internal concept of format to express multiple planes

A given Vulkan format can now be decomposed into a set of planes. We
now use 'struct anv_format_plane' to represent the format of those
planes.

v2: by Jason
    Rename anv_get_plane_format() to anv_get_format_plane()
    Don't rename anv_get_isl_format()
    Replace ds_fmt() by fmt2()
    Introduce fmt_unsupported()

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