intel/blorp: Set QPitch for depth and HiZ on gen8+
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 10 Oct 2016 16:29:34 +0000 (09:29 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Oct 2016 22:39:41 +0000 (15:39 -0700)
src/intel/blorp/blorp_genX_exec.h

index 85fb7549f80323c1eae79984db3c2462fdcc5cde..889e74c9ca1ba49c1137139f9d4765eacbf5cf3a 100644 (file)
@@ -780,6 +780,11 @@ blorp_emit_depth_stencil_config(struct blorp_batch *batch,
          db.MinimumArrayElement = params->depth.view.base_array_layer;
 
          db.SurfacePitch = params->depth.surf.row_pitch - 1;
+#if GEN_GEN >= 8
+         db.SurfaceQPitch =
+            isl_surf_get_array_pitch_el_rows(&params->depth.surf) >> 2,
+#endif
+
          db.SurfaceBaseAddress = params->depth.addr;
          db.DepthBufferMOCS = mocs;
       } else {
@@ -804,6 +809,10 @@ blorp_emit_depth_stencil_config(struct blorp_batch *batch,
          hiz.SurfacePitch = params->depth.aux_surf.row_pitch - 1;
          hiz.SurfaceBaseAddress = params->depth.aux_addr;
          hiz.HierarchicalDepthBufferMOCS = mocs;
+#if GEN_GEN >= 8
+         hiz.SurfaceQPitch =
+            isl_surf_get_array_pitch_sa_rows(&params->depth.aux_surf) >> 2;
+#endif
       }
    }