On Fri, Sep 2, 2011 at 4:09 AM, Eric Anholt <e...@anholt.net> wrote: > On Wed, 31 Aug 2011 13:46:35 +0800, Chia-I Wu <olva...@gmail.com> wrote: >> From: Chia-I Wu <o...@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). -- o...@lunarg.com _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev