[PATCH] Don't require the glamoregl module to be pre-loaded with xserver >= 1.15

Michel Dänzer michel at daenzer.net
Tue Jan 21 18:07:41 PST 2014


From: Michel Dänzer <michel.daenzer at amd.com>

The issues with loading it on demand have been fixed in xserver 1.15.

Inspired by Jerome Glissé on IRC.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/radeon_glamor.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c
index bd731a8..1d666d1 100644
--- a/src/radeon_glamor.c
+++ b/src/radeon_glamor.c
@@ -105,12 +105,14 @@ radeon_glamor_pre_init(ScrnInfoPtr scrn)
 		return FALSE;
 	}
 
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,15,0,0,0)
 	if (!xf86LoaderCheckSymbol("glamor_egl_init")) {
 		xf86DrvMsg(scrn->scrnIndex, s ? X_ERROR : X_WARNING,
 			   "glamor requires Load \"glamoregl\" in "
 			   "Section \"Module\", disabling.\n");
 		return FALSE;
 	}
+#endif
 
 	/* Load glamor module */
 	if ((glamor_module = xf86LoadSubModule(scrn, GLAMOR_EGL_MODULE_NAME))) {
-- 
1.8.5.3



More information about the xorg-driver-ati mailing list