Commit 5b41ba36 by Nicolas Capens

Fix rvalue types.

Change-Id: I98853d4858136553be730b07b02db95d1800035c Reviewed-on: https://swiftshader-review.googlesource.com/8275Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 87852e1d
......@@ -3227,7 +3227,7 @@ namespace sw
pmulhw->addArg(y.value);
::basicBlock->appendInst(pmulhw);
return RValue<UShort4>(V(result));
return RValue<Short4>(V(result));
}
RValue<Int2> MulAdd(RValue<Short4> x, RValue<Short4> y)
......@@ -3452,7 +3452,7 @@ namespace sw
RValue<UShort4> operator+(RValue<UShort4> lhs, RValue<UShort4> rhs)
{
return RValue<Short4>(Nucleus::createAdd(lhs.value, rhs.value));
return RValue<UShort4>(Nucleus::createAdd(lhs.value, rhs.value));
}
RValue<UShort4> operator-(RValue<UShort4> lhs, RValue<UShort4> rhs)
......@@ -4032,7 +4032,7 @@ namespace sw
RValue<Int> operator++(Int &val, int) // Post-increment
{
RValue<UInt> res = val;
RValue<Int> res = val;
val += 1;
return res;
}
......
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