Commit ce5fa388 by Nicolas Capens

Don't use Long1 for stencil operations.

Bug swiftshader:15 Change-Id: I4fa5356109e35ac13f9f8d5a97e9059262901051 Reviewed-on: https://swiftshader-review.googlesource.com/7950Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 7adc2046
......@@ -321,7 +321,7 @@ namespace sw
buffer += q * *Pointer<Int>(data + OFFSET(DrawData,stencilSliceB));
}
Byte8 value = As<Byte8>(Long1(*Pointer<UInt>(buffer)));
Byte8 value = *Pointer<Byte8>(buffer);
Byte8 valueCCW = value;
if(!state.noStencilMask)
......@@ -763,7 +763,7 @@ namespace sw
buffer += q * *Pointer<Int>(data + OFFSET(DrawData,stencilSliceB));
}
Byte8 bufferValue = As<Byte8>(Long1(*Pointer<UInt>(buffer)));
Byte8 bufferValue = *Pointer<Byte8>(buffer);
Byte8 newValue;
stencilOperation(newValue, bufferValue, state.stencilPassOperation, state.stencilZFailOperation, state.stencilFailOperation, false, zMask, sMask);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment