From cd40763e9f2b6f157c3d5679aae582ee38b76dc0 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 29 Jul 2025 12:26:59 +0200 Subject: [PATCH] drop own copy of RegionDuplicate() This function is present in the Xserver for way over a decade, so no need to carry around our own copy anymore. Signed-off-by: Enrico Weigelt, metux IT consult --- configure.ac | 6 ------ src/amdgpu_drv.h | 19 ------------------- 2 files changed, 25 deletions(-) diff --git a/configure.ac b/configure.ac index 968bbbb..186606c 100644 --- a/configure.ac +++ b/configure.ac @@ -150,12 +150,6 @@ else fi AM_CONDITIONAL(GLAMOR, test x$GLAMOR != xno) -AC_CHECK_DECL(RegionDuplicate, - [AC_DEFINE(HAVE_REGIONDUPLICATE, 1, - [Have RegionDuplicate API])], [], - [#include - #include ]) - AC_CHECK_DECL(xf86CursorResetCursor, [AC_DEFINE(HAVE_XF86_CURSOR_RESET_CURSOR, 1, [Have xf86CursorResetCursor API])], [], diff --git a/src/amdgpu_drv.h b/src/amdgpu_drv.h index 8f90e1c..2e27997 100644 --- a/src/amdgpu_drv.h +++ b/src/amdgpu_drv.h @@ -89,25 +89,6 @@ struct _SyncFence; -#ifndef HAVE_REGIONDUPLICATE - -static inline RegionPtr -RegionDuplicate(RegionPtr pOld) -{ - RegionPtr pNew; - - pNew = RegionCreate(&pOld->extents, 0); - if (!pNew) - return NULL; - if (!RegionCopy(pNew, pOld)) { - RegionDestroy(pNew); - return NULL; - } - return pNew; -} - -#endif - #ifndef MAX #define MAX(a,b) ((a)>(b)?(a):(b)) #endif