modesetting/dri2: Remove always true ifdef

GLAMOR_HAS_GBM is ifdefed through the whole file, so checking for it
again is redundant.

Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1554>
(cherry picked from commit c5d152c176)
This commit is contained in:
Yusuf Khan
2024-05-16 22:36:48 -05:00
committed by Alan Coopersmith
parent 1365d82f13
commit cd9b6fb053

View File

@@ -548,10 +548,8 @@ can_exchange(ScrnInfoPtr scrn, DrawablePtr draw,
drmmode_crtc_private_ptr drmmode_crtc = config->crtc[i]->driver_private;
/* Don't do pageflipping if CRTCs are rotated. */
#ifdef GLAMOR_HAS_GBM
if (drmmode_crtc->rotate_bo.gbm)
return FALSE;
#endif
if (xf86_crtc_on(config->crtc[i]))
num_crtcs_on++;