From 6d0406c7c1787a5d69bd9e6d006b09b2eacda95f Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Sun, 11 Jan 2009 19:20:28 +0100 Subject: Don't call the MODESET_CTL ioctl on the drm device if direct rendering isn't enabled. From upstream, patch originally from me. --- src/legacy_crtc.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3