Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-26 Thread Chia-I Wu
On Fri, Aug 26, 2011 at 12:55 PM, Chad Versace c...@chad-versace.us wrote: [CC'ing krh because I learned much of this from him, so may have some insight to share with us.] On 08/25/2011 08:14 PM, Chia-I Wu wrote: On Fri, Aug 26, 2011 at 4:09 AM, Chad Versace c...@chad-versace.us wrote: On

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-26 Thread Chia-I Wu
On Fri, Aug 26, 2011 at 2:05 PM, Chia-I Wu olva...@gmail.com wrote: On Fri, Aug 26, 2011 at 12:55 PM, Chad Versace c...@chad-versace.us wrote: [CC'ing krh because I learned much of this from him, so may have some insight to share with us.] On 08/25/2011 08:14 PM, Chia-I Wu wrote: On Fri, Aug

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-26 Thread Chia-I Wu
On Fri, Aug 26, 2011 at 8:36 PM, Kristensen, Kristian H kristian.h.kristen...@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

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-26 Thread Chad Versace
On 08/25/2011 11:19 PM, Chia-I Wu wrote: On Fri, Aug 26, 2011 at 2:05 PM, Chia-I Wu olva...@gmail.com wrote: On Fri, Aug 26, 2011 at 12:55 PM, Chad Versace c...@chad-versace.us wrote: [CC'ing krh because I learned much of this from him, so may have some insight to share with us.] On

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-25 Thread Chad Versace
On 08/24/2011 06:20 PM, Chia-I Wu wrote: On Thu, Aug 25, 2011 at 8:58 AM, Chad Versace c...@chad-versace.us wrote: Comments below. On 08/23/2011 08:10 PM, Chia-I Wu wrote: Add platform_android.c that supports _EGL_PLAFORM_ANDROID. It works with drm_gralloc, where back buffers of windows

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-25 Thread Chia-I Wu
On Fri, Aug 26, 2011 at 4:09 AM, Chad Versace c...@chad-versace.us wrote: On 08/24/2011 06:20 PM, Chia-I Wu wrote: On Thu, Aug 25, 2011 at 8:58 AM, Chad Versace c...@chad-versace.us wrote: Comments below. On 08/23/2011 08:10 PM, Chia-I Wu wrote: Add platform_android.c that supports

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-25 Thread Chad Versace
[CC'ing krh because I learned much of this from him, so may have some insight to share with us.] On 08/25/2011 08:14 PM, Chia-I Wu wrote: On Fri, Aug 26, 2011 at 4:09 AM, Chad Versace c...@chad-versace.us wrote: On 08/24/2011 06:20 PM, Chia-I Wu wrote: On Thu, Aug 25, 2011 at 8:58 AM, Chad

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-24 Thread Benjamin Franzke
2011/8/24 Chia-I Wu olva...@gmail.com: Add platform_android.c that supports _EGL_PLAFORM_ANDROID.  It works with drm_gralloc, where back buffers of windows are backed by GEM objects. In Android a native window has a queue of back buffers allocated by the server, through drm_gralloc.  For

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-24 Thread Chia-I Wu
On Wed, Aug 24, 2011 at 7:01 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/8/24 Chia-I Wu olva...@gmail.com: Add platform_android.c that supports _EGL_PLAFORM_ANDROID.  It works with drm_gralloc, where back buffers of windows are backed by GEM objects. In Android a native

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-24 Thread Benjamin Franzke
2011/8/24 Chia-I Wu olva...@gmail.com: On Wed, Aug 24, 2011 at 7:01 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/8/24 Chia-I Wu olva...@gmail.com: Add platform_android.c that supports _EGL_PLAFORM_ANDROID.  It works with drm_gralloc, where back buffers of windows are backed

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-24 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Comments below. On 08/23/2011 08:10 PM, Chia-I Wu wrote: Add platform_android.c that supports _EGL_PLAFORM_ANDROID. It works with drm_gralloc, where back buffers of windows are backed by GEM objects. In Android a native window has a queue of

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-24 Thread Chia-I Wu
On Thu, Aug 25, 2011 at 8:58 AM, Chad Versace c...@chad-versace.us wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Comments below. On 08/23/2011 08:10 PM, Chia-I Wu wrote: Add platform_android.c that supports _EGL_PLAFORM_ANDROID.  It works with drm_gralloc, where back buffers of

[Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-23 Thread Chia-I Wu
Add platform_android.c that supports _EGL_PLAFORM_ANDROID. It works with drm_gralloc, where back buffers of windows are backed by GEM objects. In Android a native window has a queue of back buffers allocated by the server, through drm_gralloc. For each frame, EGL needs to dequeue the next