mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
radv/gfx10: implement radv_emit_global_shader_pointers()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
3f5ca22e9c
commit
cfaad5e3ca
1 changed files with 11 additions and 1 deletions
|
|
@ -2439,7 +2439,17 @@ radv_emit_global_shader_pointers(struct radv_queue *queue,
|
|||
|
||||
radv_cs_add_buffer(queue->device->ws, cs, descriptor_bo);
|
||||
|
||||
if (queue->device->physical_device->rad_info.chip_class >= GFX9) {
|
||||
if (queue->device->physical_device->rad_info.chip_class >= GFX10) {
|
||||
uint32_t regs[] = {R_00B030_SPI_SHADER_USER_DATA_PS_0,
|
||||
R_00B130_SPI_SHADER_USER_DATA_VS_0,
|
||||
R_00B230_SPI_SHADER_USER_DATA_GS_0,
|
||||
R_00B430_SPI_SHADER_USER_DATA_HS_0};
|
||||
|
||||
for (int i = 0; i < ARRAY_SIZE(regs); ++i) {
|
||||
radv_emit_shader_pointer(queue->device, cs, regs[i],
|
||||
va, true);
|
||||
}
|
||||
} else if (queue->device->physical_device->rad_info.chip_class >= GFX9) {
|
||||
uint32_t regs[] = {R_00B030_SPI_SHADER_USER_DATA_PS_0,
|
||||
R_00B130_SPI_SHADER_USER_DATA_VS_0,
|
||||
R_00B208_SPI_SHADER_USER_DATA_ADDR_LO_GS,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue