Commit 5b9010fa authored by Yuriy Vasilev's avatar Yuriy Vasilev Committed by Adam Jackson

modesetting: add support for GBM_FORMAT_ARGB1555

Reviewed-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Yuriy Vasilev's avatarYuriy Vasilev <uuvasiliev@yandex.ru>
parent 8315fc4e
......@@ -1022,12 +1022,20 @@ drmmode_create_bo(drmmode_ptr drmmode, drmmode_bo *bo,
#endif
uint32_t format;
if (drmmode->scrn->depth == 30)
format = GBM_FORMAT_ARGB2101010;
else if (drmmode->scrn->depth == 16)
switch (drmmode->scrn->depth) {
case 15:
format = GBM_FORMAT_ARGB1555;
break;
case 16:
format = GBM_FORMAT_RGB565;
else
break;
case 30:
format = GBM_FORMAT_ARGB2101010;
break;
default:
format = GBM_FORMAT_ARGB8888;
break;
}
#ifdef GBM_BO_WITH_MODIFIERS
num_modifiers = get_modifiers_set(drmmode->scrn, format, &modifiers,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment