glamor: Add support for exporting depth 15/8 pixmaps
This allows X to run with glamor at these depths.
This commit is contained in:
parent
a2d188c7db
commit
382c26dade
|
@ -291,6 +291,12 @@ glamor_make_pixmap_exportable(PixmapPtr pixmap, Bool modifiers_ok)
|
||||||
case 16:
|
case 16:
|
||||||
format = GBM_FORMAT_RGB565;
|
format = GBM_FORMAT_RGB565;
|
||||||
break;
|
break;
|
||||||
|
case 15:
|
||||||
|
format = GBM_FORMAT_ARGB1555;
|
||||||
|
break;
|
||||||
|
case 8:
|
||||||
|
format = GBM_FORMAT_R8;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
xf86DrvMsg(scrn->scrnIndex, X_ERROR,
|
xf86DrvMsg(scrn->scrnIndex, X_ERROR,
|
||||||
"Failed to make %d depth, %dbpp pixmap exportable\n",
|
"Failed to make %d depth, %dbpp pixmap exportable\n",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user