xf86-video-amdgpu: Branch 'master'
Michel Dänzer
daenzer at kemper.freedesktop.org
Thu May 14 18:24:56 PDT 2015
configure.ac | 6 ++++++
src/amdgpu_glamor.c | 2 ++
2 files changed, 8 insertions(+)
New commits:
commit 37b389ee9e13f065fb080d1269f9a6aed616c210
Author: Michel Dänzer <michel.daenzer at amd.com>
Date: Fri May 15 10:24:24 2015 +0900
glamor: Deal with glamor_glyphs_init being removed from xserver
Port of radeon commit 818c180c8932233b214a35ba0647af82f7bcec3d.
diff --git a/configure.ac b/configure.ac
index 946c70e..c2411d9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -127,6 +127,12 @@ if test "x$GLAMOR" != "xno"; then
[GLAMOR_XSERVER="yes"], [GLAMOR_XSERVER="no"],
[#include "xorg-server.h"
#include "glamor.h"])
+
+ AC_CHECK_DECL(glamor_glyphs_init,
+ [AC_DEFINE(HAVE_GLAMOR_GLYPHS_INIT, 1,
+ [Have glamor_glyphs_init API])], [],
+ [#include "xorg-server.h"
+ #include "glamor.h"])
fi
if test "x$GLAMOR_XSERVER" != xyes; then
diff --git a/src/amdgpu_glamor.c b/src/amdgpu_glamor.c
index 22fea4a..36241ce 100644
--- a/src/amdgpu_glamor.c
+++ b/src/amdgpu_glamor.c
@@ -60,8 +60,10 @@ Bool amdgpu_glamor_create_screen_resources(ScreenPtr screen)
if (!info->use_glamor)
return TRUE;
+#ifdef HAVE_GLAMOR_GLYPHS_INIT
if (!glamor_glyphs_init(screen))
return FALSE;
+#endif
bo_handle = gbm_bo_get_handle(info->front_buffer->bo.gbm);
if (!glamor_egl_create_textured_screen_ext(screen,
More information about the xorg-commit
mailing list