diff options
-rw-r--r-- | src/legacy_crtc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/legacy_crtc.c b/src/legacy_crtc.c index 3df61a7a..314ecf02 100644 --- a/src/legacy_crtc.c +++ b/src/legacy_crtc.c @@ -625,6 +625,9 @@ radeon_crtc_modeset_ioctl(xf86CrtcPtr crtc, Bool post) RADEONCrtcPrivatePtr radeon_crtc = crtc->driver_private; struct drm_modeset_ctl modeset; + if (!info->directRenderingEnabled) + return; + modeset.crtc = radeon_crtc->crtc_id; modeset.cmd = post ? _DRM_POST_MODESET : _DRM_PRE_MODESET; |