From 703cbb7177c6f69264836e975c1921e552fd60a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 14 Feb 2018 17:28:10 +0100 Subject: glamor: Allow depth 30 with Xorg >= 1.19.99.1 Corresponding to amdgpu commit 6aee5770fb913713bb1b9a1af8f0d0892a66f21a. Reviewed-by: Alex Deucher --- src/radeon_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/radeon_kms.c') diff --git a/src/radeon_kms.c b/src/radeon_kms.c index bac98cb6..25b889a6 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -1767,7 +1767,8 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags) if (!RADEONPreInitAccel_KMS(pScrn)) goto fail; /* Depth 30 not yet supported under glamor. */ - if (pScrn->depth == 30 && info->use_glamor) { + if (pScrn->depth == 30 && info->use_glamor && + xorgGetVersion() < XORG_VERSION_NUMERIC(1,19,99,1,0)) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Given depth (%d) is not supported under GLAMOR accel. Select EXA.\n", pScrn->depth); -- cgit v1.2.3