From c5d152c176a482cee8852bdf86964efe54beec58 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: --- 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 8be3810bf..86092565f 100644 --- a/hw/xfree86/drivers/modesetting/dri2.c +++ b/hw/xfree86/drivers/modesetting/dri2.c @@ -550,10 +550,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++;