diff options
author | Owain Gordon Ainsworth <oga@openbsd.org> | 2008-07-28 10:40:58 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-07-28 10:40:58 +1000 |
commit | 64dbadddcf6d069c0472f37afeab89d3e31e937d (patch) | |
tree | e470eda2544c00ebd0eca966cae9148c453eae28 /src | |
parent | 1c5858484da4fb1c9bc3ac3b4d7a97863ab99730 (diff) |
radeon: don't call ioctl unless DRI is initialised
Diffstat (limited to 'src')
-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 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; |