From: Bas Nieuwenhuizen Date: Tue, 9 Jul 2019 00:56:10 +0000 (+0200) Subject: radv/gfx10: Load global pointers in correct userdata registers for hs/gs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d0dbc2564d0078faf1c46a00af3761b48e6b193;p=mesa.git radv/gfx10: Load global pointers in correct userdata registers for hs/gs. Fixes: cfaad5e3cad "radv/gfx10: implement radv_emit_global_shader_pointers()" Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index bfa681dbfee..d756357bcca 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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],