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 <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2026-01-09 20:10:13 +01:00
parent 46d4898918
commit 0193aad5fc
3 changed files with 0 additions and 9 deletions

View File

@@ -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_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 <stdlib.h>
#include <gbm.h>])
CPPFLAGS="$SAVE_CPPFLAGS" CPPFLAGS="$SAVE_CPPFLAGS"
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile conf/Makefile]) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile conf/Makefile])

View File

@@ -29,7 +29,6 @@ moduledir = join_paths(get_option('libdir'), get_option('moduledir'))
configdir = join_paths(get_option('prefix'), get_option('configdir')) configdir = join_paths(get_option('prefix'), get_option('configdir'))
cc = meson.get_compiler('c') 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') xorg_include = xorg_dep.get_variable(pkgconfig: 'sdkdir')
have_fbGlyphs = cc.has_header('fbpict.h', args: ['-I' + xorg_include]) have_fbGlyphs = cc.has_header('fbpict.h', args: ['-I' + xorg_include])
have_dri3_h = cc.has_header('dri3.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_DRI3_H', have_dri3_h ? 1 : 0)
config_h.set('HAVE_MISYNCSHM_H', have_misyncshm ? 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_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_LIBUDEV', libudev_dep.found() ? 1 : 0)
config_h.set('HAVE_REGIONDUPLICATE', have_regionduplicate ? 1 : 0) config_h.set('HAVE_REGIONDUPLICATE', have_regionduplicate ? 1 : 0)
config_h.set('HAVE_XF86_CURSOR_RESET_CURSOR', have_xf86CursorResetCursor ? 1 : 0) config_h.set('HAVE_XF86_CURSOR_RESET_CURSOR', have_xf86CursorResetCursor ? 1 : 0)

View File

@@ -82,10 +82,8 @@ struct amdgpu_buffer *amdgpu_alloc_pixmap_bo(ScrnInfoPtr pScrn, int width,
if (usage_hint & AMDGPU_CREATE_PIXMAP_SCANOUT) if (usage_hint & AMDGPU_CREATE_PIXMAP_SCANOUT)
bo_use |= GBM_BO_USE_SCANOUT; bo_use |= GBM_BO_USE_SCANOUT;
#ifdef HAVE_GBM_BO_USE_FRONT_RENDERING
if (usage_hint & AMDGPU_CREATE_PIXMAP_FRONT) if (usage_hint & AMDGPU_CREATE_PIXMAP_FRONT)
bo_use |= GBM_BO_USE_FRONT_RENDERING; bo_use |= GBM_BO_USE_FRONT_RENDERING;
#endif
if (usage_hint == CREATE_PIXMAP_USAGE_SHARED || if (usage_hint == CREATE_PIXMAP_USAGE_SHARED ||
(usage_hint & AMDGPU_CREATE_PIXMAP_LINEAR)) { (usage_hint & AMDGPU_CREATE_PIXMAP_LINEAR)) {