[Mesa-dev] [PATCH 1/2] radeonsi/nir: fix lds store in tcs outputs handling

Timothy Arceri tarceri at itsqueeze.com
Fri Feb 23 01:06:49 UTC 2018


We were ignoring the channel offset.
---
 src/gallium/drivers/radeonsi/si_shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 9ccae9f18d..2e398f6335 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1548,7 +1548,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;
-- 
2.14.3



More information about the mesa-dev mailing list