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>
This commit is contained in:
committed by
Marge Bot
parent
e13ed0e9e5
commit
ff1f0a720d
@@ -805,7 +805,7 @@ blorp_can_hiz_clear_depth(const struct gen_device_info *devinfo,
|
||||
if (x0 % align_px_w || y0 % align_px_h ||
|
||||
x1 % align_px_w || y1 % align_px_h)
|
||||
return false;
|
||||
} else if (isl_surf_supports_hiz_ccs_wt(devinfo, surf, aux_usage)) {
|
||||
} else if (aux_usage == ISL_AUX_USAGE_HIZ_CCS_WT) {
|
||||
/* We have to set the WM_HZ_OP::FullSurfaceDepthandStencilClear bit
|
||||
* whenever we clear an uninitialized HIZ buffer (as some drivers
|
||||
* currently do). However, this bit seems liable to clear 16x8 pixels in
|
||||
|
||||
Reference in New Issue
Block a user