mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
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:
parent
8336054024
commit
0544afd2df
1 changed files with 3 additions and 1 deletions
|
|
@ -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:
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue