From cd9b6fb0530d1e4a46ef346ea4f6142cbc5a195f Mon Sep 17 00:00:00 2001 From: Yusuf Khan Date: Thu, 16 May 2024 22:36:48 -0500 Subject: [PATCH] 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 Part-of: (cherry picked from commit c5d152c176a482cee8852bdf86964efe54beec58) --- hw/xfree86/drivers/modesetting/dri2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/dri2.c b/hw/xfree86/drivers/modesetting/dri2.c index f2094a9108..f5449a8dee 100644 --- a/hw/xfree86/drivers/modesetting/dri2.c +++ b/hw/xfree86/drivers/modesetting/dri2.c @@ -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++;