mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
glamor: Can work at depth >= 15 with current xserver Git master
(Ported from amdgpu commit 0734cdf544ffd3f2ac8749ad0e4bf43f8a5cea50)
This commit is contained in:
committed by
Michel Dänzer
parent
99ac121770
commit
06957e3067
@@ -39,6 +39,8 @@ radeon_get_gbm_format(int depth, int bitsPerPixel)
|
||||
case 8:
|
||||
return GBM_FORMAT_R8;
|
||||
#endif
|
||||
case 15:
|
||||
return GBM_FORMAT_ARGB1555;
|
||||
case 16:
|
||||
return GBM_FORMAT_RGB565;
|
||||
case 32:
|
||||
|
||||
@@ -109,9 +109,14 @@ radeon_glamor_pre_init(ScrnInfoPtr scrn)
|
||||
"glamor may not work (well) with GPUs < RV515.\n");
|
||||
}
|
||||
|
||||
#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,20,99,0,0)
|
||||
if (scrn->depth < 24) {
|
||||
#else
|
||||
if (scrn->depth < 15) {
|
||||
#endif
|
||||
xf86DrvMsg(scrn->scrnIndex, s ? X_ERROR : X_WARNING,
|
||||
"glamor requires depth >= 24, disabling.\n");
|
||||
"Depth %d not supported with glamor, disabling\n",
|
||||
scrn->depth);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user