anv: Set MOCS in 3DSTATE_CONSTANT_XS even if there isn't a buffer.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Oct 2021 06:39:30 +0000 (23:39 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 28 Oct 2021 19:45:55 +0000 (19:45 +0000)
commit7ae9f516f0313c2e36c70d96b86406ee559d6b21
treee7e1f954b46d6d458763efea482e466926f5809b
parent158ad07b3efc79583baa4939c56ff39a89062c3c
anv: Set MOCS in 3DSTATE_CONSTANT_XS even if there isn't a buffer.

This avoids MOCS != 0 assertions in later patches.  iris also does this,
and we do it for the 3DSTATE_CONSTANT_ALL packet path as well.  It's a
bit pointless, but it should hopefully be harmless also.

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