Skip to content

Commit

Permalink
drm/i915 disallow physical batchbuffers for KMS
Browse files Browse the repository at this point in the history
Even the horrible gen3 XvMC code has learned to do this
right by the time xf86-video-intel releases learned to do
kernel modesetting. So we can just disallow this.

Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Daniel Vetter committed May 3, 2012
1 parent 8781342 commit 53ca26c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -3567,8 +3567,9 @@ int i915_gem_init(struct drm_device *dev)
return ret;
}

/* Allow hardware batchbuffers unless told otherwise. */
dev_priv->dri1.allow_batchbuffer = 1;
/* Allow hardware batchbuffers unless told otherwise, but not for KMS. */
if (!drm_core_check_feature(dev, DRIVER_MODESET))
dev_priv->dri1.allow_batchbuffer = 1;
return 0;
}

Expand Down

0 comments on commit 53ca26c

Please sign in to comment.