iris: use correct enum for aux state on depth fast clear

Fixes: 5e86087940 ("intel: Move depth clear value writes to drivers")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30845>
This commit is contained in:
Tapani Pälli
2024-08-25 17:22:29 +03:00
committed by Marge Bot
parent 90d91f739f
commit a5dbd62267

View File

@@ -560,7 +560,8 @@ fast_clear_depth(struct iris_context *ice,
}
iris_resource_set_aux_state(ice, res, level, box->z, box->depth,
ISL_AUX_STATE_CLEAR);
devinfo->ver < 20 ? ISL_AUX_STATE_CLEAR :
ISL_AUX_STATE_COMPRESSED_NO_CLEAR);
ice->state.dirty |= IRIS_DIRTY_DEPTH_BUFFER;
ice->state.stage_dirty |= IRIS_ALL_STAGE_DIRTY_BINDINGS;
}