Commit 1cb82a31 by Nicolas Capens

Fix packing of 64-bit vectors.

Bug swiftshader:15 Change-Id: I5177113ad50ff2e1aa99f772d9254f7894ce5a61 Reviewed-on: https://swiftshader-review.googlesource.com/7870Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-on: https://swiftshader-review.googlesource.com/8152Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 53a8a3f5
...@@ -3222,7 +3222,7 @@ namespace sw ...@@ -3222,7 +3222,7 @@ namespace sw
pack->addArg(y.value); pack->addArg(y.value);
::basicBlock->appendInst(pack); ::basicBlock->appendInst(pack);
return RValue<SByte8>(V(result)); return As<SByte8>(Swizzle(As<Int4>(RValue<Byte16>(V(result))), 0x88));
} }
RValue<Int2> UnpackLow(RValue<Short4> x, RValue<Short4> y) RValue<Int2> UnpackLow(RValue<Short4> x, RValue<Short4> y)
...@@ -3535,7 +3535,7 @@ namespace sw ...@@ -3535,7 +3535,7 @@ namespace sw
pack->addArg(y.value); pack->addArg(y.value);
::basicBlock->appendInst(pack); ::basicBlock->appendInst(pack);
return RValue<Byte8>(V(result)); return As<Byte8>(Swizzle(As<Int4>(RValue<Byte16>(V(result))), 0x88));
} }
Type *UShort4::getType() Type *UShort4::getType()
......
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