Commit 75b9c1c8 by Nicolas Capens Committed by Nicolas Capens

Fix vector packing regression.

When SSE4.1 isn't available, we were infinitely calling PackUnsigned() recursively. Bug b/37496082 Change-Id: Ie1fa8150d64740776c5b80baf07d997dde9d51be Reviewed-on: https://swiftshader-review.googlesource.com/12929Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarCasey Dahlin <sadmac@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 1165812d
...@@ -5983,7 +5983,7 @@ namespace sw ...@@ -5983,7 +5983,7 @@ namespace sw
RValue<Int4> sy = As<Int4>(y); RValue<Int4> sy = As<Int4>(y);
RValue<Int4> by = (sy & ~(sy >> 31)) - Int4(0x8000); RValue<Int4> by = (sy & ~(sy >> 31)) - Int4(0x8000);
return PackUnsigned(bx, by) + UShort8(0x8000u); return As<UShort8>(PackSigned(bx, by) + Short8(0x8000u));
} }
} }
......
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