summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Noland <rnoland@2hip.net>2008-08-26 15:09:47 -0400
committerRobert Noland <rnoland@2hip.net>2008-08-26 15:10:52 -0400
commit6404ac178bf2c32a715a66e7fd6ab0184a05af36 (patch)
treeecfd525a6be2c20d5dc03ee0d51705dfcad38618
parentc889198ab54336248a03050ad410254912d79bb7 (diff)
Check for drm before calling modeset ioctl.
-rw-r--r--src/i830_display.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i830_display.c b/src/i830_display.c
index f81847b5..cfd4e6fd 100644
--- a/src/i830_display.c
+++ b/src/i830_display.c
@@ -753,6 +753,9 @@ static void i830_modeset_ctl(xf86CrtcPtr crtc, int pre)
I830CrtcPrivatePtr intel_crtc = crtc->driver_private;
struct drm_modeset_ctl modeset;
+ if (!pI830-directRenderingEnabled)
+ return;
+
modeset.crtc = intel_crtc->plane;
/*