crocus: Set default MOCS for NULL depth/stencil/HiZ buffers
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Oct 2021 22:33:00 +0000 (15:33 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 28 Oct 2021 19:45:55 +0000 (19:45 +0000)
commit798cc4be1b85d2acba9984f7404cc1f26fd5005e
treef9653e1c369ed1b689bbacfef90ae4d32704d797
parent737b3fae737821bb7d585bf218b03b40aadd167b
crocus: 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>
src/gallium/drivers/crocus/crocus_state.c