radeonsi: only write values belonging to the stream when emitting GS vertex

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Nicolai Hähnle
2016-11-29 16:27:10 +01:00
parent bdf1bf1cb5
commit af976f12a5
+3
View File
@@ -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) *