[Mesa-dev] [PATCH 3/8] dri2: add __DRI_IMAGE_FORMAT_RGBA8888_REV to __DRI_IMAGE

Eric Anholt eric at anholt.net
Thu Sep 1 13:03:47 PDT 2011

On Wed, 31 Aug 2011 13:46:34 +0800, Chia-I Wu <olvaffe at gmail.com> wrote:
> From: Chia-I Wu <olv at lunarg.com>
> Add a new format token, __DRI_IMAGE_FORMAT_RGBA8888_REV, to __DRI_IMAGE.
> It maps to MESA_FORMAT_RGBA8888_REV in core mesa or
> PIPE_FORMAT_R8G8B8A8_UNORM in gallium.  It is the format of translucent
> surfaces on Android.

This could use some explanation: Why can't android use the existing
format with alpha?  Does the GL get no input into the hardware formats
chosen?  Who chooses the format?  Would it work if we just didn't report
HAL_PIXEL_FORMAT_RGBA_8888 for configs?

Also, I'd prefer to see the name ABGR8888 to the ridiculous _REV naming,
if we do need a new format.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110901/6b719440/attachment.pgp>

More information about the mesa-dev mailing list