mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-04-14 11:04:42 +00:00
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:
committed by
Enrico Weigelt
parent
e0955847f6
commit
52a0b9c04e
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user