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

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 <>
Signed-off-by: Yuriy Vasilev's avatarYuriy Vasilev <>
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;
format = GBM_FORMAT_ARGB8888;
Supports Markdown
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