mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 06:04:49 +00:00
modesetting: add support for GBM_FORMAT_RGB565
This allow x-server to run with -depth 16. Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Signed-off-by: Yuriy Vasilev <uuvasiliev@yandex.ru>
This commit is contained in:
committed by
Adam Jackson
parent
3d6efc4aaf
commit
8315fc4ea2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user