Re: [Mesa-dev] [PATCH 1/3] gbm: Add gbm_surface interface

2012-03-27 Thread Kristian Høgsberg
On Tue, Mar 27, 2012 at 3:27 PM, Jakob Bornecrantz wrote: >> + >> +   struct gbm_surface *(*surface_create)(struct gbm_device *gbm, >> +                                         uint32_t width, uint32_t height, >> +                                         uint32_t format); >> +   struct gbm_bo *(*s

Re: [Mesa-dev] [PATCH 1/3] gbm: Add gbm_surface interface

2012-03-27 Thread Jakob Bornecrantz
> + > +   struct gbm_surface *(*surface_create)(struct gbm_device *gbm, > +                                         uint32_t width, uint32_t height, > +                                         uint32_t format); > +   struct gbm_bo *(*surface_lock_front_buffer)(struct gbm_surface *surface); > +   vo

[Mesa-dev] [PATCH 1/3] gbm: Add gbm_surface interface

2012-03-27 Thread Kristian Høgsberg
From: Ander Conselvan de Oliveira The idea here is to be able to create an egl window surface from a gbm_surface. This avoids the need for the surfaceless extension and lets the EGL platform handle buffer allocation, while keeping the user in charge of somehow presenting the buffers (using kms p