aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp')
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp b/src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp
index 793e5ec01ea..3d393387bb0 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp
+++ b/src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp
@@ -159,7 +159,11 @@ struct StreamOutJit : public Builder
// cast input to <4xfloat>
Value* src = BITCAST(vpackedAttrib, simd4Ty);
- CALL(maskStore, {pOut, ToMask(packedMask), src});
+
+ // cast mask to <4xint>
+ Value* mask = ToMask(packedMask);
+ mask = BITCAST(mask, VectorType::get(IRB()->getInt32Ty(), 4));
+ CALL(maskStore, {pOut, mask, src});
}
// increment SO buffer