weston/libweston/backend-drm
Leandro Ribeiro 3226417573 drm: do not pull writeback task if KMS atomic API is not supported
Since 2d70bdfdcd "drm-backend: add support
to output capture writeback source", the DRM-backend was broken for KMS
devices that do not support the atomic API. This fixes that.

We don't support writeback screenshots without atomic modeset support.
So for such devices, we never update the output capture info
(weston_output_update_capture_info()) for the writeback source.

The function that we use to pull writeback tasks
(weston_output_pull_capture_task()) asserts that the capture providers
(renderers, DRM-backend) did not forget to update the capture info
(size/format) if something changed. But as we've never updated the
capture info for such devices, it is zeroed, leading to an assert hit.

With this patch we only pull the capture task for KMS devices that
support the atomic API.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
2023-06-05 07:51:27 +00:00
..
drm-gbm.c backend-drm: import cursors on non gbm outputs 2023-03-03 08:08:46 +00:00
drm-internal.h backend-drm: move struct drm_edid definition 2023-04-28 13:58:53 +03:00
drm-virtual.c backend-drm/drm-virtual: Hang off the drm_backend 2023-02-20 12:41:03 +02:00
drm.c drm: do not pull writeback task if KMS atomic API is not supported 2023-06-05 07:51:27 +00:00
fb.c backend-drm: Pass view alpha to plane state and commit 2023-03-30 17:29:57 +01:00
kms-color.c Revert "backend-drm: add HDR_OUTPUT_METADATA definitions" 2022-06-07 09:35:14 +01:00
kms.c backend-drm: schedule connector disable for detached head 2023-04-18 11:11:21 +02:00
libbacklight.c libbacklight: Fix backlight never gets initialized 2022-04-11 08:38:00 +03:00
libbacklight.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
meson.build backend-drm: use libdisplay-info 2023-04-28 16:18:22 +03:00
modes.c backend-drm: drop HDR without libdisplay-info 2023-04-28 16:18:22 +03:00
state-helpers.c backend-drm: Pass view alpha to plane state and commit 2023-03-30 17:29:57 +01:00
state-propose.c backend-drm: Pass view alpha to plane state and commit 2023-03-30 17:29:57 +01: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