diff options
author | Nicolai Hähnle <[email protected]> | 2016-11-29 16:27:10 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-12-12 09:04:54 +0100 |
commit | af976f12a56d11face02fe74ef0f112ec26d4c69 (patch) | |
tree | a6b6b615248beb962a6792497de2aa1433bfd4ac /src/gallium | |
parent | bdf1bf1cb5422a944205ea30b2eb203a73bdd736 (diff) |
radeonsi: only write values belonging to the stream when emitting GS vertex
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 469e0c1cc3d..441718bbee5 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -5317,6 +5317,9 @@ static void si_llvm_emit_vertex( ctx->soa.outputs[i]; for (chan = 0; chan < 4; chan++) { + if (((info->output_streams[i] >> (2 * chan)) & 3) != stream) + continue; + LLVMValueRef out_val = LLVMBuildLoad(gallivm->builder, out_ptr[chan], ""); LLVMValueRef voffset = lp_build_const_int32(gallivm, (i * 4 + chan) * |