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>
This commit is contained in:
Mario Kleiner 2018-03-09 04:58:20 +01:00 • committed by Adam Jackson
commit beda6afb3c
2 changed files with 6 additions and 0 deletions

View file

@ -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: