mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 18:05:39 +00:00
![]() 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> |
||
---|---|---|
.. | ||
drm-gbm.c | ||
drm-internal.h | ||
drm-virtual.c | ||
drm.c | ||
fb.c | ||
kms-color.c | ||
kms.c | ||
libbacklight.c | ||
libbacklight.h | ||
meson.build | ||
modes.c | ||
state-helpers.c | ||
state-propose.c | ||
vaapi-recorder.c | ||
vaapi-recorder.h |