modesetting: Enable screen color depth 30 support.
glamor now supports depth 30, so allow use of it. Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Antoine Martin <antoine@nagafix.co.uk>
This commit is contained in:
parent
7bc86c7d23
commit
80d4f4b6c2
|
@ -934,6 +934,7 @@ PreInit(ScrnInfoPtr pScrn, int flags)
|
|||
case 15:
|
||||
case 16:
|
||||
case 24:
|
||||
case 30:
|
||||
break;
|
||||
default:
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
|
||||
|
|
|
@ -156,7 +156,8 @@ drmmode_create_bo(drmmode_ptr drmmode, drmmode_bo *bo,
|
|||
#ifdef GLAMOR_HAS_GBM
|
||||
if (drmmode->glamor) {
|
||||
bo->gbm = gbm_bo_create(drmmode->gbm, width, height,
|
||||
GBM_FORMAT_ARGB8888,
|
||||
drmmode->scrn->depth == 30 ?
|
||||
GBM_FORMAT_ARGB2101010 : GBM_FORMAT_ARGB8888,
|
||||
GBM_BO_USE_RENDERING | GBM_BO_USE_SCANOUT);
|
||||
return bo->gbm != NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue