iris: Create an unusable secondary aux surface
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 7 Aug 2019 23:02:51 +0000 (16:02 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 28 Oct 2019 17:47:06 +0000 (10:47 -0700)
commitc991045d38ad0d4ccbd8b7355811b85341eda3a2
tree53bddeb300a884592063090f20fb3ab08d9e62b5
parent909030bca664bd71b95d662afbfabdca3a9c4146
iris: Create an unusable secondary aux surface

The HIZ_CCS and MCS_CCS auxiliary surface modes require that drivers
store information about two aux buffers. We choose to represent this as
HiZ/MCS being the primary aux surface and the CCS as an secondary/extra
aux surface. This representation has the effect of placing most of the
code that will have to choose between the two aux surfaces around the
aux-map entry points.

Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_resource.c
src/gallium/drivers/iris/iris_resource.h