Check against libdrm version 2.4.68 in order to enable/disable
plain DRM video driver
This commit is contained in:
parent
cdc7c1283b
commit
5d70242dee
|
@ -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 \
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue