From ee7da1ea58f21ab752053462037bf4f3a622c4a8 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 8 Oct 2012 23:36:01 +0100 Subject: [PATCH] invalidate all state caches --- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c index 974a9f1..8120020 100644 --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c @@ -884,11 +884,11 @@ i915_gem_execbuffer_move_to_gpu(struct intel_ring_buffer *ring, list_for_each_entry(obj, objects, exec_list) i915_gem_object_set_to_gpu_domain(obj, ring, &cd); - if (cd.invalidate_domains | cd.flush_domains) { + if (1) { ret = i915_gem_execbuffer_flush(ring->dev, - cd.invalidate_domains, - cd.flush_domains, - cd.flush_rings); + I915_GEM_GPU_DOMAINS, + I915_GEM_GPU_DOMAINS, + intel_ring_flag(ring) | cd.flush_rings); if (ret) return ret; } -- 1.7.10.4