Implement missing state and queries. Change-Id: I4858980fc32df435ffc0fc0917905116bea54aa8 Reviewed-on: https://swiftshader-review.googlesource.com/3790 Reviewed-by: Nicolas Capens <capn@google.com> Tested-by: Nicolas Capens <capn@google.com>
diff --git a/src/Shader/PixelRoutine.cpp b/src/Shader/PixelRoutine.cpp index b53c031..442c512 100644 --- a/src/Shader/PixelRoutine.cpp +++ b/src/Shader/PixelRoutine.cpp
@@ -1285,7 +1285,7 @@ void PixelRoutine::logicOperation(Registers &r, int index, Pointer<Byte> &cBuffer, Vector4s ¤t, Int &x) { - if(state.logicalOperation == LogicalOperation::LOGICALOP_COPY) + if(state.logicalOperation == LOGICALOP_COPY) { return; } @@ -1303,9 +1303,9 @@ current.z = 0; break; case LOGICALOP_SET: - current.x = 0xFFFF; - current.y = 0xFFFF; - current.z = 0xFFFF; + current.x = 0xFFFFu; + current.y = 0xFFFFu; + current.z = 0xFFFFu; break; case LOGICALOP_COPY: ASSERT(false); // Optimized out