weston/libweston/backend-drm
Loïc Molinari a49b2e5a0d libweston: Deal with renderbuffer discards using an event handler
It's currently assumed by backends that renderers discard
renderbuffers on resize. This commit introduces a new
weston_renderbuffer_discarded_func callback that must be passed at
renderbuffer creation in order to be notified of discarded events from
the renderer. This discarded event could potentially be reused later
by renderers on other occasions without having to change backends once
they get proper support for that.

On output resize, once a discarded event handler fails (returns false)
on a renderbuffer, all the remaining renderbuffers in the output list
go stale and weston_renderer_resize_output() ultimately returns false
for backends to be notified of the failure.

Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
2025-01-21 14:21:40 +01:00
..
drm-gbm.c backend-drm: make the renderer produce client format matched image 2024-07-11 08:59:03 +00:00
drm-internal.h libweston: Use explicit renderbuffer destruction 2025-01-21 14:21:40 +01:00
drm-kms-enums.h backend-drm: Add support for YUV plane color properties 2024-12-16 15:33:20 +00:00
drm-virtual.c libweston/drm-virtual: Point output base backend the DRM backend 2024-08-27 17:32:30 +03:00
drm.c libweston: Deal with renderbuffer discards using an event handler 2025-01-21 14:21:40 +01:00
fb.c Revert "shared/helpers.h: Migrate helpers.h to libweston" 2025-01-17 10:18:26 +02:00
kms-color.c backend-drm: set connector property "Colorspace" 2024-05-06 10:39:42 +00:00
kms.c Revert "shared/helpers.h: Migrate helpers.h to libweston" 2025-01-17 10:18:26 +02:00
libbacklight.c libweston,tools: Include libgen.h for basename signature 2023-12-18 21:13:52 +00:00
libbacklight.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
meson.build backend-drm: get_eotf_mask() from di_info 2024-07-25 13:20:52 +00:00
modes.c libweston: Fix crash with mirror-of 2024-08-30 08:16:45 -05:00
state-helpers.c drm: Remove unnecessary parameter from drm_output_state_alloc() 2024-08-19 10:25:25 -05:00
state-propose.c drm: log more try_view_on_plane_failure_reasons 2025-01-16 10:03:22 -03:00
vaapi-recorder.c drm/vaapi: Fix pointer-size confusion 2021-08-03 11:13:23 +00:00
vaapi-recorder.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00