[Glamor] [PATCH] autoconf: configuration for egl, gbm and dri3 support

Gaetan Nadon memsize at videotron.ca
Sun Dec 15 10:38:17 PST 2013


A prerequisite is the patch series entitled:
    "Bring package up to spec and fix minor issues"

Additional tests have been added for the dri3 glamor code to use:
    Declaration of DRM_FORMAT_ARGB8888
    Declaration of EGL_KHR_image is declared
    Declaration of EGL_KHR_gl_texture_2D_image
    Declaration of EGL_EXT_image_dma_buf_import
    EGLNativePixmapType must refer to a gbm_bo structure
    Libgbm is at version 9 or greater

The tests are performed if the libraries/headers are present, they are not
limited to the dri3 support context. They are reusable.

One missing behaviour has been added. When the user explicitly requests
dri3 support and it can not be provided, abort the configuration.
This is the case when user types "--enable-glamor-dri3".

Here are the test cases and their configure output as a reference:

EGL:no	GBM:no	--enable-glamor-dri3=auto|no

checking for LIBDRM... yes
checking whether DRM_FORMAT_ARGB8888 is declared... yes
checking for EGL... no
checking for GBM... no
checking whether to include GLAMOR DRI3 helpers... no

EGL:no	GBM:v8	--enable-glamor-dri3=auto|no

checking for LIBDRM... yes
checking whether DRM_FORMAT_ARGB8888 is declared... yes
checking for EGL... no
checking for GBM... yes
checking for GBM >= 9... no
checking whether EGLNativePixmapType refers to a gbm_bo structure... no
checking whether to include GLAMOR DRI3 helpers... no

EGL:yes	GBM:no	--enable-glamor-dri3=auto|no

checking for LIBDRM... yes
checking whether DRM_FORMAT_ARGB8888 is declared... yes
checking for EGL... yes
checking whether EGL_KHR_image is declared... yes
checking whether EGL_KHR_gl_texture_2D_image is declared... yes
checking whether EGL_EXT_image_dma_buf_import is declared... yes
checking for GBM... no
checking whether to include GLAMOR DRI3 helpers... no

EGL:yes	GBM:no	--enable-glamor-dri3=yes

checking for LIBDRM... yes
checking whether DRM_FORMAT_ARGB8888 is declared... yes
checking for EGL... yes
checking whether EGL_KHR_image is declared... yes
checking whether EGL_KHR_gl_texture_2D_image is declared... yes
checking whether EGL_EXT_image_dma_buf_import is declared... yes
checking for GBM... no
checking whether to include GLAMOR DRI3 helpers... no
configure: error: DRI3 support requested, but some dependencies are missing.

EGL:yes	GBM:v8	--enable-glamor-dri3=auto|no

checking for LIBDRM... yes
checking whether DRM_FORMAT_ARGB8888 is declared... yes
checking for EGL... yes
checking whether EGL_KHR_image is declared... yes
checking whether EGL_KHR_gl_texture_2D_image is declared... yes
checking whether EGL_EXT_image_dma_buf_import is declared... yes
checking for GBM... yes
checking for GBM >= 9... no
checking whether EGLNativePixmapType refers to a gbm_bo structure... no
checking whether to include GLAMOR DRI3 helpers... no

EGL:yes	GBM:v9	--enable-glamor-dri3=auto

checking for LIBDRM... yes
checking whether DRM_FORMAT_ARGB8888 is declared... yes
checking for EGL... yes
checking whether EGL_KHR_image is declared... yes
checking whether EGL_KHR_gl_texture_2D_image is declared... yes
checking whether EGL_EXT_image_dma_buf_import is declared... yes
checking for GBM... yes
checking for GBM >= 9... yes
checking whether EGLNativePixmapType refers to a gbm_bo structure... yes
checking whether to include GLAMOR DRI3 helpers... yes

EGL:yes	GBM:v9	--enable-glamor-dri3=no

checking for LIBDRM... yes
checking whether DRM_FORMAT_ARGB8888 is declared... yes
checking for EGL... yes
checking whether EGL_KHR_image is declared... yes
checking whether EGL_KHR_gl_texture_2D_image is declared... yes
checking whether EGL_EXT_image_dma_buf_import is declared... yes
checking for GBM... yes
checking for GBM >= 9... yes
checking whether EGLNativePixmapType refers to a gbm_bo structure... yes
checking whether to include GLAMOR DRI3 helpers... no

EGL:yes	GBM:v9	--enable-glamor-dri3=auto EGL_KHR_gl_texture_2D_image is missing

checking for LIBDRM... yes
checking whether DRM_FORMAT_ARGB8888 is declared... yes
checking for EGL... yes
checking whether EGL_KHR_image is declared... yes
checking whether EGL_KHR_gl_texture_2D_image is declared... no
checking whether EGL_EXT_image_dma_buf_import is declared... yes
checking for GBM... yes
checking for GBM >= 9... yes
checking whether EGLNativePixmapType refers to a gbm_bo structure... yes
checking whether to include GLAMOR DRI3 helpers... no

EGL:yes	GBM:v9	--enable-glamor-dri3=auto DRM_FORMAT_ARGB8888 is missing

checking for LIBDRM... yes
checking whether DRM_FORMAT_ARGB8888 is declared... no
checking for EGL... yes
checking whether EGL_KHR_image is declared... yes
checking whether EGL_KHR_gl_texture_2D_image is declared... yes
checking whether EGL_EXT_image_dma_buf_import is declared... yes
checking for GBM... yes
checking for GBM >= 9... yes
checking whether EGLNativePixmapType refers to a gbm_bo structure... yes
checking whether to include GLAMOR DRI3 helpers... no


Gaetan Nadon (1):
  autoconf: configuration for egl, gbm and dri3 support

 configure.ac |  143 +++++++++++++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 122 insertions(+), 21 deletions(-)

-- 
1.7.9.5



More information about the Glamor mailing list