Skip to content

Commit

Permalink
config/output: support DRM_FORMAT_ARGB8888
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sdirkwinkel authored and kennylevinsen committed Sep 13, 2024
1 parent d7a76d3 commit f957c7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sway/config/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit f957c7e

Please sign in to comment.