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>
This commit is contained in:
parent
d94bff7880
commit
c5d152c176
|
@ -550,10 +550,8 @@ can_exchange(ScrnInfoPtr scrn, DrawablePtr draw,
|
||||||
drmmode_crtc_private_ptr drmmode_crtc = config->crtc[i]->driver_private;
|
drmmode_crtc_private_ptr drmmode_crtc = config->crtc[i]->driver_private;
|
||||||
|
|
||||||
/* Don't do pageflipping if CRTCs are rotated. */
|
/* Don't do pageflipping if CRTCs are rotated. */
|
||||||
#ifdef GLAMOR_HAS_GBM
|
|
||||||
if (drmmode_crtc->rotate_bo.gbm)
|
if (drmmode_crtc->rotate_bo.gbm)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (xf86_crtc_on(config->crtc[i]))
|
if (xf86_crtc_on(config->crtc[i]))
|
||||||
num_crtcs_on++;
|
num_crtcs_on++;
|
||||||
|
|
Loading…
Reference in New Issue