summaryrefslogtreecommitdiff
path: root/glamor
diff options
context:
space:
mode:
authorMario Kleiner <mario.kleiner.de@gmail.com>2018-03-09 04:58:20 +0100
committerAdam Jackson <ajax@redhat.com>2018-03-09 13:11:12 -0500
commitbeda6afb3c33adbf77637141f05631081894e93a (patch)
tree7011321ee125e810350229c255657fe80c3cc632 /glamor
parent07c369e05ac116901dacc20f4742622bdca2784f (diff)
glamor/xwayland: Add depth 30 format mapping for DRI 3.2 as well.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'glamor')
-rw-r--r--glamor/glamor_egl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c
index 8389d5f29..eccc79561 100644
--- a/glamor/glamor_egl.c
+++ b/glamor/glamor_egl.c
@@ -464,6 +464,8 @@ gbm_format_for_depth(CARD8 depth)
return GBM_FORMAT_RGB565;
case 24:
return GBM_FORMAT_XRGB8888;
+ case 30:
+ return GBM_FORMAT_ARGB2101010;
default:
ErrorF("unexpected depth: %d\n", depth);
case 32: