From: Nanley Chery Date: Fri, 30 Aug 2019 21:58:54 +0000 (-0700) Subject: iris: Clear ::has_hiz when disabling aux X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6cd9731d96c4a48252b91881491aa43ba565bf95;p=mesa.git iris: Clear ::has_hiz when disabling aux Fixes: 2cddc953cd0 ("iris: some initial HiZ bits") Reviewed-by: Kenneth Graunke --- diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index d06bf1b6211..d7a6973ef54 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -293,6 +293,7 @@ iris_resource_disable_aux(struct iris_resource *res) res->aux.usage = ISL_AUX_USAGE_NONE; res->aux.possible_usages = 1 << ISL_AUX_USAGE_NONE; res->aux.sampler_usages = 1 << ISL_AUX_USAGE_NONE; + res->aux.has_hiz = 0; res->aux.surf.size_B = 0; res->aux.bo = NULL; res->aux.clear_color_bo = NULL;