From: Timothy Arceri Date: Mon, 26 Feb 2018 00:36:11 +0000 (+1100) Subject: radeonsi/nir: fix lds store in tcs outputs handling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81f9d03807a671922d40d9cf1b69cb8f44329e2c;p=mesa.git radeonsi/nir: fix lds store in tcs outputs handling We were ignoring the channel offset. Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 920cb8683b6..694dadcfbfe 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -1563,7 +1563,7 @@ static void si_nir_store_output_tcs(struct ac_shader_abi *abi, /* Skip LDS stores if there is no LDS read of this output. */ if (!skip_lds_store) - ac_lds_store(&ctx->ac, dw_addr, value); + lds_store(ctx, chan, dw_addr, value); value = ac_to_integer(&ctx->ac, value); values[chan] = value;