drop obsolete check for glamor_finish()

This function is always present since about a decade ago, so no need to
check for it and having a fallback.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-29 12:22:12 +02:00
committed by Enrico Weigelt
parent e0955847f6
commit 52a0b9c04e
2 changed files with 0 additions and 16 deletions

View File

@@ -125,13 +125,6 @@ if test "x$GLAMOR" != "xno"; then
[GLAMOR_XSERVER="yes"], [GLAMOR_XSERVER="no"],
[#include "xorg-server.h"
#include "glamor.h"])
AC_CHECK_DECL(glamor_finish,
[AC_DEFINE(HAVE_GLAMOR_FINISH, 1,
[Have glamor_finish API])],
[PKG_CHECK_MODULES(LIBGL, [gl])],
[#include "xorg-server.h"
#include "glamor.h"])
fi
if test "x$GLAMOR_XSERVER" != xyes; then

View File

@@ -36,10 +36,6 @@
#include <gbm.h>
#ifndef HAVE_GLAMOR_FINISH
#include <GL/gl.h>
#endif
DevPrivateKeyRec amdgpu_pixmap_index;
void amdgpu_glamor_exchange_buffers(PixmapPtr src, PixmapPtr dst)
@@ -468,13 +464,8 @@ void amdgpu_glamor_finish(ScrnInfoPtr pScrn)
AMDGPUInfoPtr info = AMDGPUPTR(pScrn);
if (info->use_glamor) {
#if HAVE_GLAMOR_FINISH
glamor_finish(pScrn->pScreen);
info->gpu_flushed++;
#else
amdgpu_glamor_flush(pScrn);
glFinish();
#endif
}
}