Skip to content

backends/drm: re-enable IN_FENCE_FD for atomic commit with NVIDIA

Commit 50899f3f ("backends/drm: work around atomic commits failing with NVidia") was introduced to work around the limitation in NVIDIA drivers that prevented Wayland compositors from being able to have explicit control over presentation-rendering synchronization through the use of the IN_FENCE_FD atomic commit property. NVIDIA driver 560.28.03 (beta) introduced support for DRM-KMS explicit synchronization via the IN_FENCE_FD mode setting property. NVIDIA driver 560.35.03 fixed an issue with the IN_FENCE_FD implementation involving atomic commits with multiple monitors. Support fallback logic for doCommit in the situation where DRM driver does not support the IN_FENCE_FD property, similar to the logic gamescope uses for atomic commits.

Link: https://github.com/ValveSoftware/gamescope/pull/1330 Link: https://www.nvidia.com/en-us/drivers/details/230225/ Link: https://www.nvidia.com/en-us/drivers/details/230918/ Signed-off-by: Rahul Rameshbabu rrameshbabu@nvidia.com

Merge request reports