[Intel-gfx] [PATCH 53/56] TESTME: Always force invalidate
Ben Widawsky
benjamin.widawsky at intel.com
Sat May 10 05:59:48 CEST 2014
---
drivers/gpu/drm/i915/i915_gem_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
1.9.2
More information about the Intel-gfx
mailing list