[Mesa-dev] [PATCH 4/8] intel: add support for __DRI_IMAGE_FORMAT_RGBA8888_REV
olvaffe at gmail.com
Thu Sep 1 20:58:45 PDT 2011
On Fri, Sep 2, 2011 at 4:09 AM, Eric Anholt <eric at anholt.net> wrote:
> On Wed, 31 Aug 2011 13:46:35 +0800, Chia-I Wu <olvaffe at gmail.com> wrote:
>> From: Chia-I Wu <olv at lunarg.com>
>> Surfaces of the format can only be sampled from but not render to.
> Does the usage of this format in Android really not allow for binding as
> a render target? It looks like it's exposed as a visual, so I would
> expect it to get used as a render target.
2D apps can render to buffers in that format. It is just Mesa that
never reports an EGLConfig using the format when i915/i965 is in use.
But we still allow EGLImageKHR to be created from buffers in the
format. It can be used with glEGLImageTargetTexture2D and this usage
is quite common. But when the EGLImageKHR is used with
glEGLImageTargetRenderbufferStorage, GL_INVALID_OPERATION should be
generated (which I missed).
olv at LunarG.com
More information about the mesa-dev