mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-05 05:20:28 +01: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:
parent
3d6efc4aaf
commit
8315fc4ea2
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue