[Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android
Chia-I Wu
olvaffe at gmail.com
Fri Aug 26 08:38:22 PDT 2011
On Fri, Aug 26, 2011 at 8:36 PM, Kristensen, Kristian H
<kristian.h.kristensen at intel.com> wrote:
[snip]
>> There is no pixmap in Android so it can be ignored. As for pbuffers,
>> which I plan to support as a follow-on commit, it works pretty much
>> the same as the windows except that the back buffer is also allocated
>> by EGL.
> For pbuffers, we need to use the new DRI driver allocate buffer entry
> point. I've used a pixmap for the X case, but that doesn't work for
> Wayland. Now that we have the allocate function (which lets just send
> the getbuffers back into the driver) we can implement pbuffers without
> any window system support at all and the same implementation will work
> across X, Wayland and Android.
That is true, thanks to the allocateBuffer callback. For the Android
case, adding pbuffer support essentially changes only several lines of
code. But looking at droid_get_buffers_with_format or the loop in
dri2_get_buffers_with_format in platform_wayland.c, some cleanups are
needed to find a place for the shared pbuffer getbuffers
implementation.
> Kristian
>
--
olv at LunarG.com
More information about the mesa-dev
mailing list