intel/blorp: Treat HIZ_CCS like HiZ
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 9 Aug 2019 17:02:50 +0000 (10:02 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 28 Oct 2019 17:47:06 +0000 (10:47 -0700)
Allow it in depth buffer instructions but disable it for blits.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/blorp/blorp_genX_exec.h

index cb2d2536899c5b7abb5510b0ad5b90d6d807cbdb..fca7ae6b77925279e4e3b8b288d53be6a3384f42 100644 (file)
@@ -1356,7 +1356,7 @@ blorp_emit_surface_state(struct blorp_batch *batch,
    }
 
    /* Blorp doesn't support HiZ in any of the blit or slow-clear paths */
-   assert(surface->aux_usage != ISL_AUX_USAGE_HIZ);
+   assert(!isl_aux_usage_has_hiz(surface->aux_usage));
    enum isl_aux_usage aux_usage = surface->aux_usage;
 
    isl_channel_mask_t write_disable_mask = 0;
@@ -1572,7 +1572,7 @@ blorp_emit_depth_stencil_config(struct blorp_batch *batch,
                           params->depth.addr, 0);
 
       info.hiz_usage = params->depth.aux_usage;
-      if (info.hiz_usage == ISL_AUX_USAGE_HIZ) {
+      if (isl_aux_usage_has_hiz(info.hiz_usage)) {
          info.hiz_surf = &params->depth.aux_surf;
 
          struct blorp_address hiz_address = params->depth.aux_addr;