Skip to content

Commit

Permalink
drm/i915: disable contexts on old HW
Browse files Browse the repository at this point in the history
This got dropped as a result of the last round of comments. I didn't
test it on unsupported HW (which this is likely the case).

Note that this prevents hw context from blowing up on any pre-gen6 hw.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51142
[danvet: Added note and buglink.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Ben Widawsky authored and Daniel Vetter committed Jun 18, 2012
1 parent 39fb50f commit e158c5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/i915/i915_gem_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,10 @@ void i915_gem_context_init(struct drm_device *dev)
struct drm_i915_private *dev_priv = dev->dev_private;
uint32_t ctx_size;

if (!HAS_HW_CONTEXTS(dev))
if (!HAS_HW_CONTEXTS(dev)) {
dev_priv->hw_contexts_disabled = true;
return;
}

/* If called from reset, or thaw... we've been here already */
if (dev_priv->hw_contexts_disabled ||
Expand Down

0 comments on commit e158c5a

Please sign in to comment.