isl: Fill in MOCS for NULL depth, stencil, and HiZ buffers.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Oct 2021 21:16:38 +0000 (14:16 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 28 Oct 2021 19:45:55 +0000 (19:45 +0000)
commitc27fcb1d3bac4282978529d947f3a143ae4a311f
tree8b1b50f7132ba02c25ccfca92434fc39b26201f7
parent801ecb6f12cee3e5c5ba6d35b254b96ca9dad67b
isl: Fill in MOCS for NULL depth, stencil, and HiZ buffers.

We'd like to add safeguards against accidental use of MOCS 0 (uncached),
which can have large performance implications.  One case where we use
MOCS of 0 is SURFTYPE_NULL depth, stencil, and HiZ buffers, where MOCS
really shouldn't matter, as there's no actual surface to be cached.

That said, it should be harmless to set MOCS for these null surfaces.
We now set the one provided in info->mocs regardless of whether any
buffers actually exist or not.

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