Mesa (staging/19.2): iris: Clear ::has_hiz when disabling aux

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 29 15:19:42 UTC 2019


Module: Mesa
Branch: staging/19.2
Commit: 88ca3cf11dbf260c15db43d60df41a2de36d821a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=88ca3cf11dbf260c15db43d60df41a2de36d821a

Author: Nanley Chery <nanley.g.chery at intel.com>
Date:   Fri Aug 30 14:58:54 2019 -0700

iris: Clear ::has_hiz when disabling aux

Fixes: 2cddc953cd0 ("iris: some initial HiZ bits")
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
(cherry picked from commit 6cd9731d96c4a48252b91881491aa43ba565bf95)

---

 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 07644eb94b3..53ecb805840 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -292,6 +292,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;




More information about the mesa-commit mailing list