Commit 3e3f5363 by Nicolas Capens

Fix R5G6B5 blend.

blend() unpacks to ARGB order. Bug 20891368 Change-Id: I9a505631ee0751d4ef4b01b82c8617f155e95ca5 Reviewed-on: https://swiftshader-review.googlesource.com/3280Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent cf0cdf6a
...@@ -676,9 +676,9 @@ namespace sw ...@@ -676,9 +676,9 @@ namespace sw
{ {
Int rgb(*Pointer<Short>(s)); Int rgb(*Pointer<Short>(s));
rgb = 0xFF000000 | rgb = 0xFF000000 |
((rgb & 0x001F) << 19) | ((rgb & 0x001C) << 14) | ((rgb & 0xF800) << 8) | ((rgb & 0xE01F) << 3) |
((rgb & 0x07E0) << 5) | ((rgb & 0x0600) >> 1) | ((rgb & 0x07E0) << 5) | ((rgb & 0x0600) >> 1) |
((rgb & 0xF800) >> 8) | ((rgb & 0xE000) >> 13); ((rgb & 0x001C) >> 2);
c2 = Unpack(As<Byte4>(rgb)); c2 = Unpack(As<Byte4>(rgb));
} }
break; break;
......
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