mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
amd/common: use SH{0,1}_CU_EN definitions only of COMPUTE_STATIC_THREAD_MGMT_SE0
The automatic header generation unifies identical registers in a series and only emits definitions for the first one. This is mostly to avoid emitting excessive definitions for CB registers, but special-casing an exception for this family of registers doesn't seem worth it.
This commit is contained in:
parent
cf51009ad2
commit
853ef5ccba
2 changed files with 10 additions and 10 deletions
|
|
@ -91,16 +91,16 @@ si_emit_compute(struct radv_physical_device *physical_device,
|
|||
radeon_set_sh_reg_seq(cs, R_00B858_COMPUTE_STATIC_THREAD_MGMT_SE0, 2);
|
||||
/* R_00B858_COMPUTE_STATIC_THREAD_MGMT_SE0 / SE1 */
|
||||
radeon_emit(cs, S_00B858_SH0_CU_EN(0xffff) | S_00B858_SH1_CU_EN(0xffff));
|
||||
radeon_emit(cs, S_00B85C_SH0_CU_EN(0xffff) | S_00B85C_SH1_CU_EN(0xffff));
|
||||
radeon_emit(cs, S_00B858_SH0_CU_EN(0xffff) | S_00B858_SH1_CU_EN(0xffff));
|
||||
|
||||
if (physical_device->rad_info.chip_class >= GFX7) {
|
||||
/* Also set R_00B858_COMPUTE_STATIC_THREAD_MGMT_SE2 / SE3 */
|
||||
radeon_set_sh_reg_seq(cs,
|
||||
R_00B864_COMPUTE_STATIC_THREAD_MGMT_SE2, 2);
|
||||
radeon_emit(cs, S_00B864_SH0_CU_EN(0xffff) |
|
||||
S_00B864_SH1_CU_EN(0xffff));
|
||||
radeon_emit(cs, S_00B868_SH0_CU_EN(0xffff) |
|
||||
S_00B868_SH1_CU_EN(0xffff));
|
||||
radeon_emit(cs, S_00B858_SH0_CU_EN(0xffff) |
|
||||
S_00B858_SH1_CU_EN(0xffff));
|
||||
radeon_emit(cs, S_00B858_SH0_CU_EN(0xffff) |
|
||||
S_00B858_SH1_CU_EN(0xffff));
|
||||
}
|
||||
|
||||
/* This register has been moved to R_00CD20_COMPUTE_MAX_WAVE_ID
|
||||
|
|
|
|||
|
|
@ -324,16 +324,16 @@ void si_emit_initial_compute_regs(struct si_context *sctx, struct radeon_cmdbuf
|
|||
radeon_set_sh_reg_seq(cs, R_00B858_COMPUTE_STATIC_THREAD_MGMT_SE0, 2);
|
||||
/* R_00B858_COMPUTE_STATIC_THREAD_MGMT_SE0 / SE1 */
|
||||
radeon_emit(cs, S_00B858_SH0_CU_EN(0xffff) | S_00B858_SH1_CU_EN(0xffff));
|
||||
radeon_emit(cs, S_00B85C_SH0_CU_EN(0xffff) | S_00B85C_SH1_CU_EN(0xffff));
|
||||
radeon_emit(cs, S_00B858_SH0_CU_EN(0xffff) | S_00B858_SH1_CU_EN(0xffff));
|
||||
|
||||
if (sctx->chip_class >= GFX7) {
|
||||
/* Also set R_00B858_COMPUTE_STATIC_THREAD_MGMT_SE2 / SE3 */
|
||||
radeon_set_sh_reg_seq(cs,
|
||||
R_00B864_COMPUTE_STATIC_THREAD_MGMT_SE2, 2);
|
||||
radeon_emit(cs, S_00B864_SH0_CU_EN(0xffff) |
|
||||
S_00B864_SH1_CU_EN(0xffff));
|
||||
radeon_emit(cs, S_00B868_SH0_CU_EN(0xffff) |
|
||||
S_00B868_SH1_CU_EN(0xffff));
|
||||
radeon_emit(cs, S_00B858_SH0_CU_EN(0xffff) |
|
||||
S_00B858_SH1_CU_EN(0xffff));
|
||||
radeon_emit(cs, S_00B858_SH0_CU_EN(0xffff) |
|
||||
S_00B858_SH1_CU_EN(0xffff));
|
||||
}
|
||||
|
||||
/* This register has been moved to R_00CD20_COMPUTE_MAX_WAVE_ID
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue