OSDN Git Service

Remove FORMAT_A1R5G5B5 from EGL configs.
authorNicolas Capens <capn@google.com>
Wed, 16 Mar 2016 14:31:51 +0000 (10:31 -0400)
committerNicolas Capens <capn@google.com>
Fri, 18 Mar 2016 21:18:20 +0000 (21:18 +0000)
commit1410a682e5a030d873f87284528b60cc0942037e
tree63721db7ad8ac2d83167616de8ffa096c96ea0ef
parent25639ea6496e6290d5997c749d3819e4a96d7af9
Remove FORMAT_A1R5G5B5 from EGL configs.

This is not a natively supported pixel format, thus causing a performance
penalty for conversion. It is not supported by Nexus 4 or 5. Android has
deprecated both 4444 and 5551 as HAL formats. Also, UNSIGNED_SHORT_5_5_5_1
has the alpha component in the least significant bit, whereas A1R5G5B5 has
alpha as the most significant bit.

Bug 27690616

Change-Id: I350f0e780cd87b8a626e2c8914a65c61dbf63258
Reviewed-on: https://swiftshader-review.googlesource.com/4960
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
src/OpenGL/libEGL/Display.cpp