glamor: Add support for exporting depth 15/8 pixmaps

This allows X to run with glamor at these depths.
This commit is contained in:
Michel Dänzer 2018-10-05 12:24:23 +02:00 committed by Michel Daenzer
parent a2d188c7db
commit 382c26dade
1 changed files with 6 additions and 0 deletions

View File

@ -291,6 +291,12 @@ glamor_make_pixmap_exportable(PixmapPtr pixmap, Bool modifiers_ok)
case 16:
format = GBM_FORMAT_RGB565;
break;
case 15:
format = GBM_FORMAT_ARGB1555;
break;
case 8:
format = GBM_FORMAT_R8;
break;
default:
xf86DrvMsg(scrn->scrnIndex, X_ERROR,
"Failed to make %d depth, %dbpp pixmap exportable\n",