Commit 6edaa888 by Alexis Hetu Committed by Alexis Hétu

Fixed bad assert

UInt <-> Int conversions are noop (bitwise), so it's allowed to simply perform a move operation in that case. Change-Id: I2078b2cf2933f5ced25b8ea81933e543a017faaf Reviewed-on: https://swiftshader-review.googlesource.com/5143Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent fed7e890
......@@ -1841,7 +1841,9 @@ namespace glsl
break;
}
ASSERT(src->getBasicType() == dst->getBasicType());
ASSERT((src->getBasicType() == dst->getBasicType()) ||
((src->getBasicType() == EbtInt) && (dst->getBasicType() == EbtUInt)) ||
((src->getBasicType() == EbtUInt) && (dst->getBasicType() == EbtInt)));
return emit(sw::Shader::OPCODE_MOV, dst, dstIndex, src, srcIndex);
}
......
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