intel/isl: Add a separate ISL_AUX_USAGE_STC_CCS
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 5 Mar 2020 17:17:28 +0000 (11:17 -0600)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 17:51:28 +0000 (17:51 +0000)
commit6fa92cd015b812140b87e8ce5b4574f76f0f02e0
tree8d521410b045d4d2e265fed93c321b88da6e5b13
parent05a8e981ad6d359c0d748fe9fdda5e1270d53d78
intel/isl: Add a separate ISL_AUX_USAGE_STC_CCS

Stencil CCS is slightly different from color CCS.  Using a color CCS
resolve with stencil CCS doesn't do the right thing and you can't sample
from a stencil CCS image without the DepthStencilResource bit set or you
will get the wrong data.  Stencil CCS also has it's own rules such as it
doesn't support fast-clear and has no partial resolve.  This seems to
indicate that it should probably be its own isl_aux_usage.  Now that
adding new isl_aux_usage values is pretty cheap, let's split stencil CCS
out on its own.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4056>
src/intel/blorp/blorp_genX_exec.h
src/intel/isl/isl.h
src/intel/isl/isl_aux_info.c
src/intel/isl/isl_emit_depth_stencil.c
src/intel/isl/isl_surface_state.c
src/intel/isl/tests/isl_aux_info_test.cpp