intel/blorp: Allow more HiZ usages in hiz_clear_depth_stencil
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 7 Mar 2020 02:15:08 +0000 (20:15 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 16:17:45 +0000 (16:17 +0000)
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4100>

src/intel/blorp/blorp_clear.c

index e95f30b747d7fb6e0839adf36c1cf2ea99b7c833..3daeb004850ca9f176027f0333c2cfe43e1e380d 100644 (file)
@@ -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,