iris: Set default MOCS for NULL depth/stencil/HiZ buffers
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Oct 2021 12:27:04 +0000 (05:27 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 28 Oct 2021 19:45:55 +0000 (19:45 +0000)
commit8336054024946bc74914fc7f24a5a33b7a9e357f
tree2b350ebb532f4ea9308fe8ed5b7c72349919b060
parent0a5e2257793bc67731b0ea19ca1138ab65e8e194
iris: 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 isl's MOCS value for an internal depth buffer.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13480>
src/gallium/drivers/iris/iris_state.c