Commit 1410a682 by Nicolas Capens

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/4960Reviewed-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 25639ea6
......@@ -119,7 +119,7 @@ bool Display::initialize()
const sw::Format renderTargetFormats[] =
{
sw::FORMAT_A1R5G5B5,
// sw::FORMAT_A1R5G5B5,
// sw::FORMAT_A2R10G10B10, // The color_ramp conformance test uses ReadPixels with UNSIGNED_BYTE causing it to think that rendering skipped a colour value.
sw::FORMAT_A8R8G8B8,
sw::FORMAT_A8B8G8R8,
......
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