radeonsi/nir: fix lds store in tcs outputs handling
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 26 Feb 2018 00:36:11 +0000 (11:36 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 26 Feb 2018 00:43:47 +0000 (11:43 +1100)
We were ignoring the channel offset.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 920cb8683b6004319315b9e9fbbe0d9f0987f81e..694dadcfbfe3a440b4c877040bc9095b1ad7d0eb 100644 (file)
@@ -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;