xserver: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Apr 26 16:55:34 UTC 2024
glamor/glamor_egl.c | 2 ++
hw/xwayland/xwayland-glamor-gbm.c | 2 ++
2 files changed, 4 insertions(+)
New commits:
commit 08113b8923a83aa7018463e71b6e2db3661b8604
Author: Michel Dänzer <mdaenzer at redhat.com>
Date: Thu Apr 25 17:16:26 2024 +0200
xwayland/glamor: Handle depth 15 in gbm_format_for_depth
Prevents Xwayland with glamor from logging
unexpected depth: 15
to stderr many times when running
rendercheck -t blend -o clear
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1507>
diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c
index 918a790de..844dbbe71 100644
--- a/glamor/glamor_egl.c
+++ b/glamor/glamor_egl.c
@@ -562,6 +562,8 @@ static uint32_t
gbm_format_for_depth(CARD8 depth)
{
switch (depth) {
+ case 15:
+ return GBM_FORMAT_ARGB1555;
case 16:
return GBM_FORMAT_RGB565;
case 24:
diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c
index 570fbc54a..2a9f3c164 100644
--- a/hw/xwayland/xwayland-glamor-gbm.c
+++ b/hw/xwayland/xwayland-glamor-gbm.c
@@ -116,6 +116,8 @@ static uint32_t
gbm_format_for_depth(int depth, int gles)
{
switch (depth) {
+ case 15:
+ return GBM_FORMAT_ARGB1555;
case 16:
return GBM_FORMAT_RGB565;
case 24:
More information about the xorg-commit
mailing list