output: lift up output format fallback logic

This makes it possible for the two functions using output_pick_format
(output_pick_cursor_format and output_create_swapchain) to select
different buffer formats.
This commit is contained in:
Manuel Stoeckl 2021-11-10 22:54:04 -05:00 committed by Simon Ser
parent ee210758fc
commit 7508f87fcb
3 changed files with 39 additions and 37 deletions

View file

@ -8,7 +8,7 @@ void output_pending_resolution(struct wlr_output *output, int *width,
int *height);
struct wlr_drm_format *output_pick_format(struct wlr_output *output,
const struct wlr_drm_format_set *display_formats);
const struct wlr_drm_format_set *display_formats, uint32_t format);
void output_clear_back_buffer(struct wlr_output *output);
bool output_ensure_buffer(struct wlr_output *output);