blorp: Fill in MOCS for null depth/stencil/HiZ buffers.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Oct 2021 12:31:06 +0000 (05:31 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 28 Oct 2021 19:45:55 +0000 (19:45 +0000)
isl now uses info->mocs regardless of whether there's any actual
depth/stencil/HiZ buffers involved, so pass it a legitimate one,
rather than zero.  We just assume a generic internal MOCS when we
have entirely NULL surfaces.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13480>

src/intel/blorp/blorp_genX_exec.h

index 26da24a..7a8c346 100644 (file)
@@ -1661,6 +1661,8 @@ blorp_emit_depth_stencil_config(struct blorp_batch *batch,
    } else if (params->stencil.enabled) {
       info.view = &params->stencil.view;
       info.mocs = params->stencil.addr.mocs;
+   } else {
+      info.mocs = isl_mocs(isl_dev, 0, false);
    }
 
    if (params->depth.enabled) {