[Glamor] [PATCH v3] Add DRI3 support to glamor

davyaxel at free.fr davyaxel at free.fr
Sun Dec 8 07:38:10 PST 2013


On 07/12/2013, Gaetan Nadon wrote :
>
> This patch introduces compile errors.
> I just did a full build of X from git and I get a dozen of errors in glamor_egl.c and a load of warnings.
>
>     With libgbm:
>     ../src/glamor_egl.c:236:45: error: 'GBM_FORMAT_ARGB8888' undeclared (first use in this function)
>     ../src/glamor_egl.c:466:38: error: 'GBM_BO_IMPORT_EGL_IMAGE' undeclared (first use in this function)
>     ../src/glamor_egl.c:543:38: error: 'GBM_BO_IMPORT_EGL_IMAGE' undeclared (first use in this function)

Since you seem to know better how to manage configure issues than me,
there is another issue that should be taken care of:
The Dri3 helpers rely on some EGL extension, and it would be great
to disable automatically the compilation of the DRI3 code if the
EGL extensions are not defined.

For example EGL_EXT_image_dma_buf_import is recent, and the
definition of the symbols around the extension might be missing in the
OpenGL library.

Another issue is that we need EGLNativePixmapType to be (struct gbm_bo*).
I didn't know how to deal with the issue, that's why I've put the comment
lines 242-245 in glamor_egl.c.

Do you know how to solve these issues?

Axel Davy


More information about the Glamor mailing list