radv/gfx10: Load global pointers in correct userdata registers for hs/gs.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 9 Jul 2019 00:56:10 +0000 (02:56 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 9 Jul 2019 02:03:51 +0000 (12:03 +1000)
Fixes: cfaad5e3cad "radv/gfx10: implement radv_emit_global_shader_pointers()"

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c

index bfa681d..d756357 100644 (file)
@@ -2489,8 +2489,8 @@ radv_emit_global_shader_pointers(struct radv_queue *queue,
        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};
+                                  R_00B208_SPI_SHADER_USER_DATA_ADDR_LO_GS,
+                                  R_00B408_SPI_SHADER_USER_DATA_ADDR_LO_HS};
 
                for (int i = 0; i < ARRAY_SIZE(regs); ++i) {
                        radv_emit_shader_pointer(queue->device, cs, regs[i],