From 64dbadddcf6d069c0472f37afeab89d3e31e937d Mon Sep 17 00:00:00 2001 From: Owain Gordon Ainsworth Date: Mon, 28 Jul 2008 10:40:58 +1000 Subject: radeon: don't call ioctl unless DRI is initialised --- src/legacy_crtc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/legacy_crtc.c b/src/legacy_crtc.c index f7216f90..334194a5 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