tu: Use appropriate chip variants for SP_CS reg packing.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38796>
This commit is contained in:
Emma Anholt 2025-12-02 12:29:31 -08:00 committed by Marge Bot
parent 002fc56a0c
commit 249680b508
2 changed files with 3 additions and 3 deletions

View file

@ -8986,7 +8986,7 @@ tu_dispatch(struct tu_cmd_buffer *cmd,
for (unsigned i = 0; i < 3; i++)
last_local_size[i] = ((num_groups[i] - 1) % local_size[i]) + 1;
tu_cs_emit_regs(cs,
A7XX_SP_CS_NDRANGE_7(.localsizex = last_local_size[0] - 1,
SP_CS_NDRANGE_7(CHIP, .localsizex = last_local_size[0] - 1,
.localsizey = last_local_size[1] - 1,
.localsizez = last_local_size[2] - 1));
}
@ -9004,7 +9004,7 @@ tu_dispatch(struct tu_cmd_buffer *cmd,
SP_CS_NDRANGE_6(CHIP, .globaloff_z = 0));
if (CHIP >= A7XX) {
tu_cs_emit_regs(cs,
A7XX_SP_CS_NDRANGE_7(.localsizex = local_size[0] - 1,
SP_CS_NDRANGE_7(CHIP, .localsizex = local_size[0] - 1,
.localsizey = local_size[1] - 1,
.localsizez = local_size[2] - 1));
}

View file

@ -1821,7 +1821,7 @@ tu6_emit_cs_config(struct tu_cs *cs,
WORKITEMRASTORDER_LINEAR :
WORKITEMRASTORDER_TILED, ));
tu_cs_emit_regs(cs, A7XX_SP_CS_UNKNOWN_A9BE(0)); // Sometimes is 0x08000000
tu_cs_emit_regs(cs, SP_CS_UNKNOWN_A9BE(CHIP, 0)); // Sometimes is 0x08000000
}
}