mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
radv: set missing SPI_SHADER_PGM_xxx registers on GFX11
Found by inspection.
Cc: 22.3 mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20054>
(cherry picked from commit 62715a6d03)
This commit is contained in:
parent
da6c352d7a
commit
49d1eae7c1
2 changed files with 7 additions and 4 deletions
|
|
@ -148,7 +148,7 @@
|
|||
"description": "radv: set missing SPI_SHADER_PGM_xxx registers on GFX11",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -352,12 +352,15 @@ si_emit_graphics(struct radv_device *device, struct radeon_cmdbuf *cs)
|
|||
if (physical_device->rad_info.gfx_level >= GFX10 &&
|
||||
physical_device->rad_info.gfx_level < GFX11) {
|
||||
/* Logical CUs 16 - 31 */
|
||||
ac_set_reg_cu_en(cs, R_00B404_SPI_SHADER_PGM_RSRC4_HS, S_00B404_CU_EN(0xffff),
|
||||
C_00B404_CU_EN, 16, &physical_device->rad_info,
|
||||
(void*)gfx10_set_sh_reg_idx3);
|
||||
ac_set_reg_cu_en(cs, R_00B104_SPI_SHADER_PGM_RSRC4_VS, S_00B104_CU_EN(0xffff),
|
||||
C_00B104_CU_EN, 16, &physical_device->rad_info,
|
||||
(void*)gfx10_set_sh_reg_idx3);
|
||||
}
|
||||
|
||||
if (physical_device->rad_info.gfx_level >= GFX10) {
|
||||
ac_set_reg_cu_en(cs, R_00B404_SPI_SHADER_PGM_RSRC4_HS, S_00B404_CU_EN(0xffff),
|
||||
C_00B404_CU_EN, 16, &physical_device->rad_info,
|
||||
(void*)gfx10_set_sh_reg_idx3);
|
||||
ac_set_reg_cu_en(cs, R_00B004_SPI_SHADER_PGM_RSRC4_PS, S_00B004_CU_EN(cu_mask_ps >> 16),
|
||||
C_00B004_CU_EN, 16, &physical_device->rad_info,
|
||||
(void*)gfx10_set_sh_reg_idx3);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue