mesa/src/egl
Kristian Høgsberg 90804e886d egl/wayland: Pull color buffers from dri2_surf->color_buffers pool
We used to keep the color buffers in the dri_buffers array and
swap __DRI_BUFFER_BACK_LEFT and __DRI_BUFFER_FRONT_LEFT around there
and swap third_buffer in in case we needed to triple buffer.  That
gets a little fidgety with all the swaps, so lets use the
color_buffers pool like the gbm platform does.  We track the color buffers,
their corresponding wl_buffer and locked status here and just plug
a free one into dri2_surf->buffers when we need to.

This is a nice clean-up in itself, but it also sets us up to track
buffer age in the color_buffers structs.

Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
2013-01-14 16:39:15 -05:00
..
docs egl: Mark EGL_MESA_screen_surface as obsolete. 2010-08-31 15:25:22 +08:00
drivers egl/wayland: Pull color buffers from dri2_surf->color_buffers pool 2013-01-14 16:39:15 -05:00
main Clean up .gitignore files 2013-01-10 22:01:31 +01:00
wayland Clean up .gitignore files 2013-01-10 22:01:31 +01:00
Makefile.am automake: Convert src/egl/Makefile to automake. 2012-06-21 09:58:12 -07:00