xf86-video-ati: Branch 'master'

Michel Dänzer daenzer at kemper.freedesktop.org
Thu May 14 18:21:17 PDT 2015


 configure.ac        |    6 ++++++
 src/radeon_glamor.c |    2 ++
 2 files changed, 8 insertions(+)

New commits:
commit 818c180c8932233b214a35ba0647af82f7bcec3d
Author: Michel Dänzer <michel.daenzer at amd.com>
Date:   Tue May 12 17:43:57 2015 +0900

    glamor: Deal with glamor_glyphs_init being removed from xserver
    
    Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

diff --git a/configure.ac b/configure.ac
index 4ca5352..c371829 100644
--- a/configure.ac
+++ b/configure.ac
@@ -113,6 +113,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/radeon_glamor.c b/src/radeon_glamor.c
index 4b6b024..fdd5aea 100644
--- a/src/radeon_glamor.c
+++ b/src/radeon_glamor.c
@@ -60,8 +60,10 @@ radeon_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
 
 	if (!glamor_egl_create_textured_screen_ext(screen,
 						   info->front_bo->handle,


More information about the xorg-commit mailing list