diff options
author | Jason Ekstrand <[email protected]> | 2016-10-10 09:29:34 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-10-14 15:39:41 -0700 |
commit | 0414aaa1339f26bffef3852ea1030c339dded314 (patch) | |
tree | efb2fabd3b61007dc503ed0fdc3c9710097e6212 /src | |
parent | 563fa63bf2245e84584efb1143ea5acd7374df46 (diff) |
intel/blorp: Set QPitch for depth and HiZ on gen8+
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/blorp/blorp_genX_exec.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index 85fb7549f80..889e74c9ca1 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -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(¶ms->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(¶ms->depth.aux_surf) >> 2; +#endif } } |