intel/common: Add get_aux_map_format_bits()
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 20 Nov 2019 00:05:38 +0000 (16:05 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Sep 2020 20:02:03 +0000 (20:02 +0000)
commit1ddb1a6cf98bf15112901edd14965f04f6ed9a46
tree911581cc3e2bac64a0e01e5180320b249cd5e5a9
parentc3c99f45718080b66676c2b028015abbafeaee11
intel/common: Add get_aux_map_format_bits()

Add a function suitable for planar YUV surfaces. For these surfaces,
drivers remap each plane to an RGB-formatted surface. Enable drivers to
pass the plane index and the original YUV format to get the right
aux-map format bits.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6486>
src/intel/common/gen_aux_map.c
src/intel/common/gen_aux_map.h