Mesa (master): intel/blorp: Allow more HiZ usages in hiz_clear_depth_stencil

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 24 16:27:00 UTC 2020


Module: Mesa
Branch: master
Commit: 5cb6c5d11d3eee083bb16942cb294434626cc14c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5cb6c5d11d3eee083bb16942cb294434626cc14c

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Fri Mar  6 20:15:08 2020 -0600

intel/blorp: Allow more HiZ usages in hiz_clear_depth_stencil

Reviewed-by: Rafael Antognolli <rafael.antognolli at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4100>

---

 src/intel/blorp/blorp_clear.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/blorp/blorp_clear.c b/src/intel/blorp/blorp_clear.c
index e95f30b747d..3daeb004850 100644
--- a/src/intel/blorp/blorp_clear.c
+++ b/src/intel/blorp/blorp_clear.c
@@ -904,7 +904,7 @@ blorp_hiz_clear_depth_stencil(struct blorp_batch *batch,
 
       if (clear_depth) {
          /* If we're clearing depth, we must have HiZ */
-         assert(depth && depth->aux_usage == ISL_AUX_USAGE_HIZ);
+         assert(depth && isl_aux_usage_has_hiz(depth->aux_usage));
 
          brw_blorp_surface_info_init(batch->blorp, &params.depth, depth,
                                      level, layer,



More information about the mesa-commit mailing list