iris: Use ISL_AUX_USAGE_HIZ_CCS_WT to indicate write-through HiZ
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 4 Mar 2020 04:20:26 +0000 (22:20 -0600)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 17:51:28 +0000 (17:51 +0000)
commitff1f0a720d8edcfc09aa41c720ba8de3afe88d72
tree844ef4ab301854c736d85d16d87e56695de21598
parente13ed0e9e548c99e484e9533b0030ce555465fd7
iris: Use ISL_AUX_USAGE_HIZ_CCS_WT to indicate write-through HiZ

Previously, we always set the aux_usage to ISL_AUX_USAGE_HIZ_CCS and let
ISL choose write-through based on isl_surf_supports_hiz_ccs_wt.  This
commit makes us choose explicitly at surface creation time whether to
use HIZ_CCS or HIZ_CCS_WT based on the same set of conditions.  This is
more explicit and should be more robust as it lets us choose WT mode in
one place rather than trusting isl_surf_supports_hiz_ccs_wt to return
the same thing every time.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4056>
src/gallium/drivers/iris/iris_blit.c
src/gallium/drivers/iris/iris_resolve.c
src/gallium/drivers/iris/iris_resource.c
src/intel/blorp/blorp_clear.c