summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-11-06 20:19:17 -0500
committerMarek Olšák <[email protected]>2019-11-27 19:28:32 -0500
commit1b45da15a95afa30caf43af3f8cb5b5231d6ba31 (patch)
tree0003baf5a1a20f6c2657112cd7bb016d2dde9805 /src/gallium
parent268e42e4f8be8bc0560538808bbe5df2612d2377 (diff)
radeonsi/nir: fix location_frac handling for TCS outputs
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 2be14857334..2cd0e453501 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1402,7 +1402,7 @@ static void si_nir_store_output_tcs(struct ac_shader_abi *abi,
addr = get_tcs_tes_buffer_address_from_generic_indices(ctx, vertex_index,
param_index, name, index);
- for (unsigned chan = 0; chan < 8; chan++) {
+ for (unsigned chan = component; chan < 8; chan++) {
if (!(writemask & (1 << chan)))
continue;
LLVMValueRef value = ac_llvm_extract_elem(&ctx->ac, src, chan - component);