aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Dirkwinkel <s.dirkwinkel@beckhoff.com>2024-09-13 08:58:55 +0000
committerKenny Levinsen <kl@kl.wtf>2024-09-13 13:09:48 +0200
commitf957c7e658871c27935f88f6e1d18b9db67f3808 (patch)
treefa0119067a8c75a969b0ba20822a56ecdd54c748
parentd7a76d381bbe4321578bc3a95fbc82d76b67ef05 (diff)
config/output: support DRM_FORMAT_ARGB8888
Some display output hardware [1] doesn't support any of the current formats, but works with ARGB8888. Fall back to it if available. [1] https://github.com/torvalds/linux/blob/196145c606d0f816fd3926483cb1ff87e09c2c0b/drivers/gpu/drm/xlnx/zynqmp_disp.c#L313 Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
-rw-r--r--sway/config/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index 4a6ba155..1ba72517 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -783,6 +783,7 @@ static bool search_render_format(struct search_context *ctx, size_t output_idx)
DRM_FORMAT_XRGB2101010,
DRM_FORMAT_XBGR2101010,
DRM_FORMAT_XRGB8888,
+ DRM_FORMAT_ARGB8888,
DRM_FORMAT_INVALID,
};
if (render_format_is_bgr(wlr_output->render_format)) {