Don't call the MODESET_CTL ioctl on the drm device if direct rendering

isn't enabled. From upstream, patch originally from me.
This commit is contained in:
oga 2008-08-26 16:38:56 +00:00
parent 5c3f5f1a24
commit b6b1e89e02

View File

@ -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;