aboutsummaryrefslogtreecommitdiff
path: root/kms
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-10-22 19:45:01 +0200
committerdec05eba <dec05eba@protonmail.com>2023-10-22 19:45:01 +0200
commite0b2f0c9c5129184eacf32864183058e82567bd5 (patch)
tree6a17b69a78a3bb2e20bc8dd8a108d4e4ff5eba19 /kms
parent51154b71be6be742541f53a21b5c9d39d0033270 (diff)
Dont forcefully set drm fourcc to argb8888, fixes kde wayland where default is 10bit colors
Diffstat (limited to 'kms')
-rw-r--r--kms/server/kms_server.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kms/server/kms_server.c b/kms/server/kms_server.c
index f42567a..90921cf 100644
--- a/kms/server/kms_server.c
+++ b/kms/server/kms_server.c
@@ -264,10 +264,8 @@ static int kms_get_fb(gsr_drm *drm, gsr_kms_response *response, connector_to_crt
response->fds[response->num_fds].height = drmfb->height;
response->fds[response->num_fds].pitch = drmfb->pitches[0];
response->fds[response->num_fds].offset = drmfb->offsets[0];
- // TODO:
- response->fds[response->num_fds].pixel_format = DRM_FORMAT_ARGB8888;//drmfb->pixel_format;
- // TODO:
- response->fds[response->num_fds].modifier = 0;//drmfb->modifier;
+ response->fds[response->num_fds].pixel_format = drmfb->pixel_format;
+ response->fds[response->num_fds].modifier = drmfb->modifier;
response->fds[response->num_fds].connector_id = get_connector_by_crtc_id(c2crtc_map, plane->crtc_id);
response->fds[response->num_fds].is_cursor = is_cursor;
response->fds[response->num_fds].is_combined_plane = false;