From 6cd9731d96c4a48252b91881491aa43ba565bf95 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Fri, 30 Aug 2019 14:58:54 -0700 Subject: [PATCH] iris: Clear ::has_hiz when disabling aux Fixes: 2cddc953cd0 ("iris: some initial HiZ bits") Reviewed-by: Kenneth Graunke --- src/gallium/drivers/iris/iris_resource.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2