If glamor is too old for depth 30, fall back to EXA or ShadowFB
PATCH 1/2 If glamor is too old for depth 30, fall back to EXA or ShadowFB
From: Michel Dänzer <[email protected]>
Instead of not starting up at all.
Corresponding to amdgpu commit 37c7260bdef3a53b0f0295a531f33938e9aad8cf.
--- src/radeon_glamor.c | 8 ++++++++ src/radeon_kms.c | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-)
src/radeon_glamor.c +8 -0
@@ -119,6 +119,14 @@ radeon_glamor_pre_init(ScrnInfoPtr scrn)return FALSE; } +if (scrn->depth ==30 && +xorgGetVersion () <XORG_VERSION_NUMERIC (1 ,19 ,99 ,1 ,0 )) { +xf86DrvMsg (scrn->scrnIndex,X_WARNING , +"Depth 30 is not supported by GLAMOR with Xorg < " +"1.19.99.1\n" ); +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,
src/radeon_kms.c +0 -9
@@ -1775,15 +1775,6 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)if (!RADEONPreInitAccel_KMS (pScrn))return FALSE; -/* Depth 30 not yet supported under 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); -return FALSE; - } -/* Depth 30 only supported since Linux 3.16 / kms driver minor version 39 */ if (pScrn->depth ==30 && info->dri2.pKernelDRMVersion->version_minor <39 ) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
Signature · 6 lines
2.16.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180215165024.9736-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org
PATCH 2/2 Simplify depth 30 "kernel too old" error message
From: Michel Dänzer <[email protected]>
We know it's depth 30, need to have xf86DrvMsg fill it in.
--- src/radeon_kms.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
src/radeon_kms.c +1 -2
@@ -1778,8 +1778,7 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)/* Depth 30 only supported since Linux 3.16 / kms driver minor version 39 */ if (pScrn->depth ==30 && info->dri2.pKernelDRMVersion->version_minor <39 ) {xf86DrvMsg (pScrn->scrnIndex,X_ERROR , -"Given depth (%d) is not supported. Kernel too old. Needs Linux 3.16+\n" , - pScrn->depth); +"Depth 30 is not supported. Kernel too old. Needs Linux 3.16+\n" );return FALSE; }
Signature · 6 lines
2.16.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180215165024.9736-2-michel-otUistvHUpPR7s880joybQ@public.gmane.org
Deucher, Alexander
Reviewed-byRe: [PATCH xf86-video-ati 2/2] Simplify depth 30 "kernel too old" error message
Series is:
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Michel Dänzer <[email protected]>
Sent: Thursday, February 15, 2018 11:50:24 AM
To: [email protected]
Subject: [PATCH xf86-video-ati 2/2] Simplify depth 30 "kernel too old" error message
From: Michel Dänzer <[email protected]>
We know it's depth 30, need to have xf86DrvMsg fill it in.
--- src/radeon_kms.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
src/radeon_kms.c +1 -2
@@ -1778,8 +1778,7 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)/* Depth 30 only supported since Linux 3.16 / kms driver minor version 39 */ if (pScrn->depth ==30 && info->dri2.pKernelDRMVersion->version_minor <39 ) {xf86DrvMsg (pScrn->scrnIndex,X_ERROR , -"Given depth (%d) is not supported. Kernel too old. Needs Linux 3.16+\n" , - pScrn->depth); +"Depth 30 is not supported. Kernel too old. Needs Linux 3.16+\n" );return FALSE; }
--
2.16.1
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx