From 32aeb3c41fedbbd7b11aacfec48e8f699d16bff0 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 2 Nov 2023 04:34:57 +0000 Subject: Import Mesa 23.1.9 --- lib/mesa/src/gbm/main/backend.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/mesa/src/gbm') diff --git a/lib/mesa/src/gbm/main/backend.c b/lib/mesa/src/gbm/main/backend.c index 974d0a76a..feee07034 100644 --- a/lib/mesa/src/gbm/main/backend.c +++ b/lib/mesa/src/gbm/main/backend.c @@ -42,7 +42,9 @@ #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0])) #define VER_MIN(a, b) ((a) < (b) ? (a) : (b)) +#if defined(HAVE_DRI) || defined(HAVE_DRI2) || defined(HAVE_DRI3) extern const struct gbm_backend gbm_dri_backend; +#endif struct gbm_backend_desc { const char *name; @@ -51,7 +53,9 @@ struct gbm_backend_desc { }; static const struct gbm_backend_desc builtin_backends[] = { +#if defined(HAVE_DRI) || defined(HAVE_DRI2) || defined(HAVE_DRI3) { "dri", &gbm_dri_backend }, +#endif }; #define BACKEND_LIB_SUFFIX "_gbm" -- cgit v1.2.3