From 6e65547971a8839ed9b2aab27205daa094aedb6a Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 29 Jul 2025 14:44:58 +0200 Subject: [PATCH] configure.ac: drop check for GBM_BO_USE_FRONT_RENDERING It's present since at least mesa 22.3. No need to care about ancient mesa versions anymore. Signed-off-by: Enrico Weigelt, metux IT consult --- configure.ac | 5 ----- src/amdgpu_bo_helper.c | 2 -- 2 files changed, 7 deletions(-) diff --git a/configure.ac b/configure.ac index b0e285b..4b0bbc3 100644 --- a/configure.ac +++ b/configure.ac @@ -137,11 +137,6 @@ else fi AM_CONDITIONAL(GLAMOR, test x$GLAMOR != xno) -AC_CHECK_DECL(GBM_BO_USE_FRONT_RENDERING, - [AC_DEFINE(HAVE_GBM_BO_USE_FRONT_RENDERING, 1, [Have GBM_BO_USE_FRONT_RENDERING])], [], - [#include - #include ]) - AC_CHECK_HEADERS([dri3.h], [], [], [#include #include ]) diff --git a/src/amdgpu_bo_helper.c b/src/amdgpu_bo_helper.c index b7008f3..2e6bc6d 100644 --- a/src/amdgpu_bo_helper.c +++ b/src/amdgpu_bo_helper.c @@ -82,10 +82,8 @@ struct amdgpu_buffer *amdgpu_alloc_pixmap_bo(ScrnInfoPtr pScrn, int width, if (usage_hint & AMDGPU_CREATE_PIXMAP_SCANOUT) bo_use |= GBM_BO_USE_SCANOUT; -#ifdef HAVE_GBM_BO_USE_FRONT_RENDERING if (usage_hint & AMDGPU_CREATE_PIXMAP_FRONT) bo_use |= GBM_BO_USE_FRONT_RENDERING; -#endif if (usage_hint == CREATE_PIXMAP_USAGE_SHARED || (usage_hint & AMDGPU_CREATE_PIXMAP_LINEAR)) {