i965: Set default MOCS for NULL depth/stencil/HiZ buffers

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.  When we have entirely NULL surfaces, we just
default to the MOCS value for an internal buffer.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13480>
This commit is contained in:
Kenneth Graunke 2021-10-19 16:41:57 -07:00 committed by Marge Bot
parent f0a5f10b6c
commit d0e356b333

View file

@ -365,6 +365,7 @@ brw_emit_depthbuffer(struct brw_context *brw)
struct isl_depth_stencil_hiz_emit_info info = {
.view = &view,
.mocs = brw_mocs(&brw->isl_dev, NULL),
};
if (depth_mt) {