i965: Set MOCS for push constant buffers on Haswell and Gfx9+
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Oct 2021 22:18:09 +0000 (15:18 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 28 Oct 2021 19:45:56 +0000 (19:45 +0000)
commit59f53b07c487dead0884b78f15468eefd52a2dc5
tree334cb0d8fa00f00f66de0ee7cac201d1ef7e1722
parentd0e356b3332e7fc4ae8b9f5a7f690454084b2d5a
i965: Set MOCS for push constant buffers on Haswell and Gfx9+

We set MOCS on Ivybridge/Baytrail, but not Haswell, and not Skylake
and later.  We shoud set it everywhere.  While we're at it, we also
set it for null constant buffers, so that we aren't programming a 0
MOCS, to allow us to add some safeguards against that.

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