egl: Soften several HAVE_DRM_PLATFORM to HAVE_LIBDRM
authorAxel Davy <axel.davy@ens.fr>
Wed, 14 Jan 2015 19:36:04 +0000 (20:36 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 12 Feb 2015 13:20:22 +0000 (13:20 +0000)
commit63986f958097288a29ae001e15df3dea076486d1
treed6380b3a3be0f36eec81b59744c7c275c5853752
parentc39dbfdd0f764b1aaa7319b4694e7335692993dd
egl: Soften several HAVE_DRM_PLATFORM to HAVE_LIBDRM

To fix build when libdrm is not found,
commit a594cec7e3ef275c386054127a357110a19dd823 did put several
parts of egl code under #ifdef HAVE_DRM_PLATFORM.

HAVE_DRM_PLATFORM means the egl drm platform is being built.
What should have been used instead is HAVE_LIBDRM.

At a few locations, the HAVE_DRM_PLATFORM introduced
have already been replaced by HAVE_LIBDRM, this patch
replaces the remaining occurences.

This patch makes for example EGL_EXT_image_dma_buf_import
be advertised by egl under x11 when the drm egl platform
is not built, whereas previously it required the drm egl
platform to be built.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/egl/drivers/dri2/egl_dri2.c