anv: Don't track clear bo for stencil buffer compression

On Gen12+, stencil buffer compression does not support fast clear so we
don't have to track clear address for it.

v2:
- Use isl_aux_usage_has_fast_clears (Nanley Chery)

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2942>
This commit is contained in:
Sagar Ghuge 2019-11-18 12:47:10 -08:00 committed by Marge Bot
parent d34ab5071a
commit 815e6c8ef4
1 changed files with 1 additions and 1 deletions

View File

@ -1830,7 +1830,7 @@ anv_image_fill_surface_state(struct anv_device *device,
state_inout->aux_address = aux_address;
struct anv_address clear_address = ANV_NULL_ADDRESS;
if (device->info.gen >= 10 && aux_usage != ISL_AUX_USAGE_NONE) {
if (device->info.gen >= 10 && isl_aux_usage_has_fast_clears(aux_usage)) {
if (aspect == VK_IMAGE_ASPECT_DEPTH_BIT) {
clear_address = (struct anv_address) {
.bo = device->hiz_clear_bo,