[Bug 76671] [PNV/ILK Regression]X will be no response when run all piglit cases
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Mar 27 02:52:41 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=76671
--- Comment #4 from Chris Wilson <chris at chris-wilson.co.uk> ---
I think:
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c
b/drivers/gpu/drm/i915/i915_gem_context.c
index 021e21223c9c..91000ff1b626 100644
--- a/drivers/gpu/drm/i915/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/i915_gem_context.c
@@ -506,9 +506,6 @@ int i915_gem_context_enable(struct drm_i915_private
*dev_priv)
struct intel_ring_buffer *ring;
int ret, i;
- if (!HAS_HW_CONTEXTS(dev_priv->dev))
- return 0;
-
/* This is the only place the aliasing PPGTT gets enabled, which means
* it has to happen before we bail on reset */
if (dev_priv->mm.aliasing_ppgtt) {
@@ -833,7 +830,13 @@ int i915_switch_context(struct intel_ring_buffer *ring,
/* We have the fake context */
if (!HAS_HW_CONTEXTS(ring->dev)) {
- ring->last_context = to;
+ if (to != ring->last_context) {
+ if (to)
+ i915_gem_context_reference(to);
+ if (ring->last_context)
+ i915_gem_context_unreference(ring->last_context);
+ ring->last_context = to;
+ }
return 0;
}
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20140327/4ab03029/attachment.html>
More information about the intel-gfx-bugs
mailing list