commit f957c7e658871c27935f88f6e1d18b9db67f3808
parent d7a76d381bbe4321578bc3a95fbc82d76b67ef05
Author: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
Date: Fri, 13 Sep 2024 08:58:55 +0000
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>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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)) {