Commit 8315fc4e authored by Yuriy Vasilev's avatar Yuriy Vasilev Committed by Adam Jackson

modesetting: add support for GBM_FORMAT_RGB565

This allow x-server to run with -depth 16.
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Yuriy Vasilev's avatarYuriy Vasilev <uuvasiliev@yandex.ru>
parent 3d6efc4a
......@@ -1024,6 +1024,8 @@ drmmode_create_bo(drmmode_ptr drmmode, drmmode_bo *bo,
if (drmmode->scrn->depth == 30)
format = GBM_FORMAT_ARGB2101010;
else if (drmmode->scrn->depth == 16)
format = GBM_FORMAT_RGB565;
else
format = GBM_FORMAT_ARGB8888;
......
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