|
@@ -775,9 +775,11 @@ int i915_switch_context(struct intel_ring_buffer *ring,
|
|
|
|
|
|
BUG_ON(file && to == NULL);
|
|
|
|
|
|
- /* We have the fake context, but don't supports switching. */
|
|
|
- if (!HAS_HW_CONTEXTS(ring->dev))
|
|
|
+ /* We have the fake context */
|
|
|
+ if (!HAS_HW_CONTEXTS(ring->dev)) {
|
|
|
+ ring->last_context = to;
|
|
|
return 0;
|
|
|
+ }
|
|
|
|
|
|
return do_switch(ring, to);
|
|
|
}
|