amd/common: set COMPUTE_STATIC_THREAD_MGMT_SE2-3 correctly on gfx10-11

There is a hole between SE1 and SE2 occupied by COMPUTE_TMPRING_SIZE.

Fixes: 3c8b48e310 ("ac,radeonsi: add a function to initialize compute preambles")

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29622>
This commit is contained in:
Georg Lehmann 2024-06-07 21:51:26 +02:00 committed by Marge Bot
parent 5d013da038
commit 05ca6e2478

View file

@ -58,10 +58,14 @@ gfx10_init_compute_preamble_state(const struct ac_preamble_state *state,
ac_pm4_set_reg(pm4, R_00B834_COMPUTE_PGM_HI, S_00B834_DATA(info->address32_hi >> 8));
for (unsigned i = 0; i < 4; ++i)
for (unsigned i = 0; i < 2; ++i)
ac_pm4_set_reg(pm4, R_00B858_COMPUTE_STATIC_THREAD_MGMT_SE0 + i * 4,
i < info->max_se ? compute_cu_en : 0x0);
for (unsigned i = 2; i < 4; ++i)
ac_pm4_set_reg(pm4, R_00B864_COMPUTE_STATIC_THREAD_MGMT_SE2 + (i - 2) * 4,
i < info->max_se ? compute_cu_en : 0x0);
ac_pm4_set_reg(pm4, R_00B890_COMPUTE_USER_ACCUM_0, 0);
ac_pm4_set_reg(pm4, R_00B894_COMPUTE_USER_ACCUM_1, 0);
ac_pm4_set_reg(pm4, R_00B898_COMPUTE_USER_ACCUM_2, 0);