xserver-multidpi/glamor
Zhigang Gong bf7d79dc0a Refine CloseScreen and FreeScreen processes.
This commit move the calling to glamor_close_screen from
glamor_egl_free_screen to glamor_egl_close_screen, as this
is the right place to do this.

We should detach screen fbo and destroy the corresponding
KHR image at glamor_egl_close_screen stage. As latter
DDX driver will call DestroyPixmap to destroy screen pixmap,
if the fbo and image are still there but glamor screen private
data pointer has been freed, then it causes segfault.

This commit also introduces a new flag GLAMOR_USE_EGL_SCREEN.
if DDX driver is using EGL layer then should set this bit
when call to glamor_init and then both glamor_close_screen
and glamor_egl_close_screen will be registered correctly,
DDX layer will not need to call these two functions manually.
This way is also the preferred method within Xorg domain.

As interfaces changed, bump the version to 0.3.0.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: Peng Li <peng.li@intel.com>
2013-12-18 11:23:48 -08:00
..
glamor_addtraps.c glamor-for-ddx: Exports all rendering/drawing functions. 2013-12-18 11:23:46 -08:00
glamor_copyarea.c Use CLAMP_TO_BORDER in copy_n_to_n so we can sample outside of the source 2013-12-18 11:23:48 -08:00
glamor_copyplane.c Added more drawing functions. 2013-12-18 11:23:47 -08:00
glamor_copywindow.c Initial version. 2013-12-18 11:23:46 -08:00
glamor_core.c glamor-fbo-pool: Implement fbo cache mechanism. 2013-12-18 11:23:47 -08:00
glamor_debug.h glamor_fbo: Introduce glamor fbo to manage all the fb/tex. 2013-12-18 11:23:47 -08:00
glamor_egl.c Refine CloseScreen and FreeScreen processes. 2013-12-18 11:23:48 -08:00
glamor_eglmodule.c Set glamor's initial version to 0.2.0. 2013-12-18 11:23:47 -08:00
glamor_fbo.c Refine CloseScreen and FreeScreen processes. 2013-12-18 11:23:48 -08:00
glamor_fill.c glamor-fbo-pool: Implement fbo cache mechanism. 2013-12-18 11:23:47 -08:00
glamor_fillspans.c Fixed a rendering bug at fillspans. 2013-12-18 11:23:47 -08:00
glamor_getimage.c glamor_gles2: Consolidate gles2 pixmap format readable check to one function. 2013-12-18 11:23:48 -08:00
glamor_getspans.c glamor-gles2: Fixup the pixmap before read back if it is not readable. 2013-12-18 11:23:48 -08:00
glamor_gl_dispatch.c glamor_gl_dispatch: fix the dispatch initialization on GLES2. 2013-12-18 11:23:48 -08:00
glamor_gl_dispatch.h glamor-fbo-pool: Implement fbo cache mechanism. 2013-12-18 11:23:47 -08:00
glamor_glext.h glamor: Re-arrange some macros/definitions in header files. 2011-09-26 16:47:02 +08:00
glamor_glyphblt.c Added more drawing functions. 2013-12-18 11:23:47 -08:00
glamor_glyphs.c glamor-for-ddx: Exports all rendering/drawing functions. 2013-12-18 11:23:46 -08:00
glamor_picture.c glamor_create_picture: Fix the format matching method. 2013-12-18 11:23:47 -08:00
glamor_pixmap.c glamor-gles2: Fixup the pixmap before read back if it is not readable. 2013-12-18 11:23:48 -08:00
glamor_polyfillrect.c glamor-for-ddx: Exports all rendering/drawing functions. 2013-12-18 11:23:46 -08:00
glamor_polylines.c Added more drawing functions. 2013-12-18 11:23:47 -08:00
glamor_polyops.c Added more drawing functions. 2013-12-18 11:23:47 -08:00
glamor_priv.h Refine CloseScreen and FreeScreen processes. 2013-12-18 11:23:48 -08:00
glamor_putimage.c glamor-fbo-pool: Implement fbo cache mechanism. 2013-12-18 11:23:47 -08:00
glamor_render.c Use CLAMP_TO_BORDER in copy_n_to_n so we can sample outside of the source 2013-12-18 11:23:48 -08:00
glamor_setspans.c get_spans: Check whether have a valid fbo before check format. 2013-12-18 11:23:47 -08:00
glamor_tile.c glamor-fbo-pool: Enable to reuse different size fbo/texture. 2013-12-18 11:23:47 -08:00
glamor_triangles.c glamor-for-ddx: Exports all rendering/drawing functions. 2013-12-18 11:23:46 -08:00
glamor_utils.h glamor_gles2: Consolidate gles2 pixmap format readable check to one function. 2013-12-18 11:23:48 -08:00
glamor_window.c Initial version. 2013-12-18 11:23:46 -08:00
glamor.c Refine CloseScreen and FreeScreen processes. 2013-12-18 11:23:48 -08:00
glamor.h Refine CloseScreen and FreeScreen processes. 2013-12-18 11:23:48 -08:00
Makefile.am glamor_fbo: Introduce glamor fbo to manage all the fb/tex. 2013-12-18 11:23:47 -08:00