weston/libweston/backend-drm
Michael Olbrich d5e5428478 backend-drm: don't copy the fence fd when duplicating the plane state
The state does not own the fd. This is usually not a problem, because the
in_fence_fd of the state is assigned during drm_assign_planes() and then
immediately used in drm_repaint_flush(). It cannot be closed in-between.

However, in the fallback path in drm_output_start_repaint_loop(), the state is
duplicated. At this point in time, the in_fence_fd may be invalid because it was
replaced in a new commit of the corresponding surface.

The plane state was already committed to the kernel when it is copied, so the
fence is no longer needed. So just clear it.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
2023-03-22 11:41:56 +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: add additional-devices to support multi GPU 2023-03-03 08:08:46 +00:00
drm-virtual.c backend-drm/drm-virtual: Hang off the drm_backend 2023-02-20 12:41:03 +02:00
drm.c backend-drm: add additional-devices to support multi GPU 2023-03-03 08:08:46 +00:00
fb.c backend-drm: import GBM bo to scanout device if necessary 2023-03-03 08:08:46 +00:00
kms-color.c Revert "backend-drm: add HDR_OUTPUT_METADATA definitions" 2022-06-07 09:35:14 +01:00
kms.c backend-drm: don't try to commit an empty state 2023-03-22 11:38:17 +00: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: import GBM bo to scanout device if necessary 2023-03-03 08:08:46 +00:00
modes.c backend-drm: get the drm device from the output 2022-06-03 09:17:49 +02:00
state-helpers.c backend-drm: don't copy the fence fd when duplicating the plane state 2023-03-22 11:41:56 +00:00
state-propose.c backend-drm: import cursors on non gbm outputs 2023-03-03 08:08:46 +00: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