From 0193aad5fc466ec43365711b8ca3edfdc82004c2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 9 Jan 2026 20:10:13 +0100 Subject: [PATCH] configure.ac: drop obsolete check for GBM_BO_USE_FRONT_RENDERING It's always present in non-ancient libgbm versions. Signed-off-by: Enrico Weigelt, metux IT consult --- configure.ac | 5 ----- meson.build | 2 -- src/amdgpu_bo_helper.c | 2 -- 3 files changed, 9 deletions(-) diff --git a/configure.ac b/configure.ac index 7a8561f..71ea8a3 100644 --- a/configure.ac +++ b/configure.ac @@ -93,11 +93,6 @@ CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $GBM_CFLAGS" AC_CHECK_HEADERS([glamor.h], [], [AC_MSG_ERROR([glamor needed])], [#include "xorg-server.h"]) -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 ]) - CPPFLAGS="$SAVE_CPPFLAGS" AC_CONFIG_FILES([Makefile src/Makefile man/Makefile conf/Makefile]) diff --git a/meson.build b/meson.build index 11c2ba0..9ea027f 100644 --- a/meson.build +++ b/meson.build @@ -29,7 +29,6 @@ moduledir = join_paths(get_option('libdir'), get_option('moduledir')) configdir = join_paths(get_option('prefix'), get_option('configdir')) cc = meson.get_compiler('c') -have_gbm_bo_use_front_rendering = cc.has_header_symbol('gbm.h', 'GBM_BO_USE_FRONT_RENDERING') xorg_include = xorg_dep.get_variable(pkgconfig: 'sdkdir') have_fbGlyphs = cc.has_header('fbpict.h', args: ['-I' + xorg_include]) have_dri3_h = cc.has_header('dri3.h', args: ['-I' + xorg_include]) @@ -47,7 +46,6 @@ config_h = configuration_data() config_h.set('HAVE_DRI3_H', have_dri3_h ? 1 : 0) config_h.set('HAVE_MISYNCSHM_H', have_misyncshm ? 1 : 0) config_h.set('HAVE_FBGLYPHS', have_fbGlyphs ? 1 : 0) -config_h.set('HAVE_GBM_BO_USE_FRONT_RENDERING', have_gbm_bo_use_front_rendering ? 1 : 0) config_h.set('HAVE_LIBUDEV', libudev_dep.found() ? 1 : 0) config_h.set('HAVE_REGIONDUPLICATE', have_regionduplicate ? 1 : 0) config_h.set('HAVE_XF86_CURSOR_RESET_CURSOR', have_xf86CursorResetCursor ? 1 : 0) diff --git a/src/amdgpu_bo_helper.c b/src/amdgpu_bo_helper.c index 841bf65..446c5ce 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)) {