From 271aef55a4dd3402c9730c43d23234f079e1cfe5 Mon Sep 17 00:00:00 2001 From: orbea Date: Mon, 13 May 2019 07:44:33 -0700 Subject: [PATCH 1/2] qb: Improve the OpenGLES build. --- qb/config.libs.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/qb/config.libs.sh b/qb/config.libs.sh index f94af86991..b0ebbb7a92 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -343,25 +343,23 @@ if [ "$HAVE_OPENGL" != 'no' ] && [ "$HAVE_OPENGLES" != 'yes' ]; then fi check_pkgconf OSMESA osmesa - else - die : 'Notice: Ignoring Cg. Desktop OpenGL is not enabled.' - HAVE_CG='no' fi +else + HAVE_OPENGL='no' fi +check_enabled OPENGL CG Cg 'OpenGL is' false +check_enabled OPENGL OSMESA osmesa 'OpenGL is' false +check_enabled OPENGL OPENGL1 OpenGL1 'OpenGL is' false + if [ "$HAVE_OPENGL" = 'no' ] && [ "$HAVE_OPENGLES3" = 'no' ]; then - die : 'Notice: OpenGL and OpenGLES3 are disabled. Disabling HAVE_OPENGL_CORE.' + die : 'Notice: OpenGL and OpenGLES3 are disabled. Disabling OpenGL core.' HAVE_OPENGL_CORE='no' elif [ "$HAVE_OPENGLES" != 'no' ] && [ "$HAVE_OPENGLES3" != 'yes' ]; then die : 'Notice: OpenGLES2 is enabled. Disabling the OpenGL core driver.' HAVE_OPENGL_CORE='no' fi -if [ "$HAVE_OPENGLES" != 'no' ] || [ "$HAVE_OPENGLES3" != 'no' ]; then - die : 'Notice: OpenGLES is enabled. Disabling the OpenGL1 driver.' - HAVE_OPENGL1='no' -fi - if [ "$HAVE_ZLIB" = 'no' ]; then HAVE_BUILTINZLIB=no elif [ "$HAVE_BUILTINZLIB" = 'yes' ]; then From f5a9c21b99cfe1a3b8aa030b1d9eb5470ffe1d5d Mon Sep 17 00:00:00 2001 From: orbea Date: Mon, 13 May 2019 08:45:24 -0700 Subject: [PATCH 2/2] qb: Improve the KMS check. --- qb/config.libs.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/qb/config.libs.sh b/qb/config.libs.sh index b0ebbb7a92..ff71f1604d 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -402,16 +402,12 @@ fi if [ "$HAVE_KMS" != "no" ]; then check_val '' GBM -lgbm '' gbm 9.0 '' false check_val '' DRM -ldrm libdrm libdrm '' '' false - - if [ "$HAVE_GBM" = "yes" ] && [ "$HAVE_DRM" = "yes" ] && [ "$HAVE_EGL" = "yes" ]; then - HAVE_KMS=yes - elif [ "$HAVE_KMS" = "yes" ]; then - die 1 'Error: Cannot find libgbm, libdrm and EGL libraries required for KMS. Compile without --enable-kms.' - else - HAVE_KMS=no - fi fi +check_enabled DRM KMS KMS 'DRM is' true +check_enabled GBM KMS KMS 'GBM is' true +check_enabled EGL KMS KMS 'EGL is' true + if [ "$HAVE_EGL" = "yes" ]; then if [ "$HAVE_OPENGLES" != "no" ]; then if [ "$OPENGLES_LIBS" ] || [ "$OPENGLES_CFLAGS" ]; then