mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
radv: update global graphics shader pointers on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
This commit is contained in:
parent
aa0f9e356f
commit
d4d2578e91
1 changed files with 8 additions and 1 deletions
|
|
@ -570,7 +570,14 @@ radv_emit_graphics_shader_pointers(struct radv_device *device, struct radeon_cmd
|
|||
|
||||
radv_cs_add_buffer(device->ws, cs, descriptor_bo);
|
||||
|
||||
if (pdev->info.gfx_level >= GFX11) {
|
||||
if (pdev->info.gfx_level >= GFX12) {
|
||||
uint32_t regs[] = {R_00B030_SPI_SHADER_USER_DATA_PS_0, R_00B410_SPI_SHADER_PGM_LO_HS,
|
||||
R_00B210_SPI_SHADER_PGM_LO_GS};
|
||||
|
||||
for (int i = 0; i < ARRAY_SIZE(regs); ++i) {
|
||||
radv_emit_shader_pointer(device, cs, regs[i], va, true);
|
||||
}
|
||||
} else if (pdev->info.gfx_level >= GFX11) {
|
||||
uint32_t regs[] = {R_00B030_SPI_SHADER_USER_DATA_PS_0, R_00B420_SPI_SHADER_PGM_LO_HS,
|
||||
R_00B220_SPI_SHADER_PGM_LO_GS};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue