xserver/hw
Sultan Alsawaf 4689e5744e modesetting: Don't recursively force present to unflip
Present calls drmmode_set_mode_major() as part of ms_present_unflip(),
which leads to a crash due to the recursive attempt to force present to
unflip when it already is.

Fix it by simply skipping the forced present unflip when present itself is
unflipping. This also speeds up drmmmode_prepare_modeset() when present
isn't even flipping to begin with.

Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1791
Fixes: 899c87af1 ("modesetting: unflip before any setcrtc() calls")
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1793>
2026-02-14 16:04:01 -08:00
..
kdrive Xephyr.man: Use \- to get ASCII hyphens instead of Unicode dashes 2026-01-25 10:40:01 -08:00
vfb man pages: remove extraneous PP macros 2026-01-25 10:40:01 -08:00
xfree86 modesetting: Don't recursively force present to unflip 2026-02-14 16:04:01 -08:00
xnest Xnest: use authorative declarations from X11/XKBlib.h 2026-01-25 10:40:01 -08:00
xquartz Strip trailing whitespace from source files 2026-01-25 10:40:02 -08:00
xwayland xwayland: wrong expecting_event 2026-02-08 11:44:42 -08:00
xwin Strip trailing whitespace from source files 2026-01-25 10:40:02 -08:00
meson.build meson.build: print a summary of the DDX to build 2026-01-25 10:40:01 -08:00