diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-10-05 12:24:23 +0200 |
---|---|---|
committer | Michel Daenzer <michel@daenzer.net> | 2018-10-23 17:00:50 +0000 |
commit | 382c26dade81a4c629307a3bfe6f5cca5af640e0 (patch) | |
tree | 6729d93acf495fc7d23ff10355d88338af825def /glamor | |
parent | a2d188c7db1baaf21b42c2e8bccf54c8d5486548 (diff) |
glamor: Add support for exporting depth 15/8 pixmaps
This allows X to run with glamor at these depths.
Diffstat (limited to 'glamor')
-rw-r--r-- | glamor/glamor_egl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c index 210c11824..ca7ea8c98 100644 --- a/glamor/glamor_egl.c +++ b/glamor/glamor_egl.c @@ -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", |