xserver-multidpi/glamor
Li Peng 6fb92e67b3 glamor: check driver support GEM or not
glamor calls DRM_IOCTL_GEM_FLINK to get a name for a buffer object.
It only works for driver that support GEM, such as intel i915 driver.
But for pvr driver who doesn't has GEM, we can't do it this way.

According to Chris's comments, we check the has_gem as the following
method:

Here we just try to flink handle 0. If that fails with ENODEV or
ENOTTY instead of ENOENT (or EINVAL on older kernels), set has_gem=0.

Signed-off-by: Li Peng <peng.li@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.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 glamor_fbo: Introduce glamor fbo to manage all the fb/tex. 2013-12-18 11:23:47 -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 glamor: check driver support GEM or not 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 glamor-fbo-pool: Enable to reuse different size fbo/texture. 2013-12-18 11:23:47 -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: Consolidate gles2 pixmap format readable check to one function. 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: Consolidate gles2 pixmap format readable check to one function. 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 glamor-fbo-pool: Enable to reuse different size fbo/texture. 2013-12-18 11:23:47 -08:00
glamor_putimage.c glamor-fbo-pool: Implement fbo cache mechanism. 2013-12-18 11:23:47 -08:00
glamor_render.c glamor_render: Add non-Map/Unmap vertex array for GLES. 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 glamor_init: Should set gl_flavor before sub-module intialization. 2013-12-18 11:23:48 -08:00
glamor.h glamor-fbo-pool: Implement fbo cache mechanism. 2013-12-18 11:23:47 -08:00
Makefile.am glamor_fbo: Introduce glamor fbo to manage all the fb/tex. 2013-12-18 11:23:47 -08:00