Check against libdrm version 2.4.68 in order to enable/disable

plain DRM video driver
This commit is contained in:
twinaphex 2016-07-03 22:08:56 +02:00
parent cdc7c1283b
commit 5d70242dee
4 changed files with 8 additions and 4 deletions

View File

@ -677,12 +677,15 @@ OBJ += gfx/video_context_driver.o \
ifeq ($(HAVE_KMS), 1)
HAVE_AND_WILL_USE_DRM = 1
OBJ += gfx/drivers_context/drm_ctx.o \
gfx/drivers/drm_gfx.o
OBJ += gfx/drivers_context/drm_ctx.o
DEFINES += $(GBM_CFLAGS) $(DRM_CFLAGS) $(EGL_CFLAGS)
LIBS += $(GBM_LIBS) $(DRM_LIBS) $(EGL_LIBS)
endif
ifeq ($(HAVE_PLAIN_DRM), 1)
OBJ += gfx/drivers/drm_gfx.o
endif
ifeq ($(HAVE_GL_CONTEXT), 1)
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
OBJ += gfx/drivers/gl.o \

View File

@ -200,7 +200,7 @@ static const video_driver_t *video_drivers[] = {
#ifdef HAVE_SUNXI
&video_sunxi,
#endif
#ifdef HAVE_KMS
#ifdef HAVE_PLAIN_DRM
&video_drm,
#endif
&video_null,

View File

@ -278,7 +278,7 @@ VIDEO DRIVER
#include "../gfx/drivers/vulkan.c"
#endif
#if defined(HAVE_KMS)
#if defined(HAVE_PLAIN_DRM)
#include "../gfx/drivers/drm_gfx.c"
#endif

View File

@ -309,6 +309,7 @@ fi
if [ "$HAVE_KMS" != "no" ]; then
check_pkgconf GBM gbm 9.0
check_pkgconf DRM libdrm
check_pkgconf PLAIN_DRM libdrm 2.4.68
if [ "$HAVE_GBM" = "yes" ] && [ "$HAVE_DRM" = "yes" ] && [ "$HAVE_EGL" = "yes" ]; then
HAVE_KMS=yes
elif [ "$HAVE_KMS" = "yes" ]; then