summaryrefslogtreecommitdiff
path: root/src/amdgpu_glamor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/amdgpu_glamor.c')
-rw-r--r--src/amdgpu_glamor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/amdgpu_glamor.c b/src/amdgpu_glamor.c
index ea49f82..13d68fe 100644
--- a/src/amdgpu_glamor.c
+++ b/src/amdgpu_glamor.c
@@ -99,6 +99,14 @@ Bool amdgpu_glamor_pre_init(ScrnInfoPtr scrn)
} else {
AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(scrn);
+ if (scrn->depth == 30 &&
+ version < MODULE_VERSION_NUMERIC(1, 0, 1)) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "Depth 30 requires glamor >= 1.0.1 (xserver 1.20),"
+ " can't enable glamor\n");
+ return FALSE;
+ }
+
if (glamor_egl_init(scrn, pAMDGPUEnt->fd)) {
xf86DrvMsg(scrn->scrnIndex, X_INFO,
"glamor detected, initialising EGL layer.\n");