iris: Set MOCS on 3DSTATE_CONSTANT_XS on Gfx9+

We were leaving this blank due to a Broadwell restriction, causing our
constant buffers to be uncached.  We later fixed this for Gfx12+, but
left Gfx9-11 without a fix.  We should specify one.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13480>
This commit is contained in:
Kenneth Graunke 2020-05-13 15:08:33 -07:00 committed by Marge Bot
parent 8336054024
commit 0544afd2df

View file

@ -5509,9 +5509,11 @@ emit_push_constant_packets(struct iris_context *ice,
iris_emit_cmd(batch, GENX(3DSTATE_CONSTANT_VS), pkt) {
pkt._3DCommandSubOpcode = push_constant_opcodes[stage];
#if GFX_VER >= 12
#if GFX_VER >= 9
pkt.MOCS = isl_mocs(isl_dev, 0, false);
#endif
if (prog_data) {
/* The Skylake PRM contains the following restriction:
*