diff mbox

[53/56] TESTME: Always force invalidate

Message ID 1399694391-3935-54-git-send-email-benjamin.widawsky@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ben Widawsky May 10, 2014, 3:59 a.m. UTC
---
 drivers/gpu/drm/i915/i915_gem_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c
index fec8114..a4ea50a 100644
--- a/drivers/gpu/drm/i915/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/i915_gem_context.c
@@ -681,7 +681,7 @@  static int do_switch(struct intel_ring_buffer *ring,
 	 * it must avoid lite restores in HW by programming "Force Restore" bit
 	 * to ‘1’ in context descriptor during context submission
 	 */
-	if (IS_GEN8(ring->dev) && i915_semaphore_is_enabled(ring->dev))
+	if (IS_GEN8(ring->dev) && to->is_initialized)
 		hw_flags |= MI_FORCE_RESTORE;
 
 	ret = mi_set_context(ring, to, hw_flags);