summaryrefslogtreecommitdiff
path: root/src/radeon_glamor.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2013-03-27 11:57:29 +0100
committerMichel Dänzer <michel@daenzer.net>2013-03-27 11:58:53 +0100
commit6e74aacc5e5da3b51744153dad1645caa6ea4ce3 (patch)
treeb0f59a8da88c386a794a66eaa646c892db5df8cd /src/radeon_glamor.c
parent33d8408eec806355c2e55726679ec50ef3b769f1 (diff)
glamor: Only enable for depth >= 24
It can't handle lower depths yet. Reported-by: Igor Vagulin <igor.vagulin@gmail.com>
Diffstat (limited to 'src/radeon_glamor.c')
-rw-r--r--src/radeon_glamor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c
index 7bca67c5..488593ee 100644
--- a/src/radeon_glamor.c
+++ b/src/radeon_glamor.c
@@ -93,6 +93,12 @@ radeon_glamor_pre_init(ScrnInfoPtr scrn)
if (s && strcasecmp(s, "glamor") != 0)
return FALSE;
+ if (scrn->depth < 24) {
+ xf86DrvMsg(scrn->scrnIndex, s ? X_ERROR : X_WARNING,
+ "glamor requires depth >= 24, disabling.\n");
+ return FALSE;
+ }
+
if (!xf86LoaderCheckSymbol("glamor_egl_init")) {
xf86DrvMsg(scrn->scrnIndex, s ? X_ERROR : X_WARNING,
"glamor requires Load \"glamoregl\" in "