diff mbox

[1/6] drm/i915: Remove the useless flush_chipset

Message ID 1423518859-6199-2-git-send-email-benjamin.widawsky@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ben Widawsky Feb. 9, 2015, 9:54 p.m. UTC
flush_chipset makes no sense with execlists because the former is for strictly
prior to gen6, while the latter is for gen >= 8

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
---
 drivers/gpu/drm/i915/intel_lrc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Chris Wilson Feb. 10, 2015, 9:18 a.m. UTC | #1
On Mon, Feb 09, 2015 at 01:54:14PM -0800, Ben Widawsky wrote:
> flush_chipset makes no sense with execlists because the former is for strictly
> prior to gen6, while the latter is for gen >= 8

The whole split is insane. I'd rather keep the code as is and merge it
back together which was the idea behind requests.
-Chris
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 70e449b..e727217 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -576,7 +576,6 @@  static int execlists_move_to_gpu(struct intel_ringbuffer *ringbuf,
 	struct intel_engine_cs *ring = ringbuf->ring;
 	struct i915_vma *vma;
 	uint32_t flush_domains = 0;
-	bool flush_chipset = false;
 	int ret;
 
 	list_for_each_entry(vma, vmas, exec_list) {
@@ -587,7 +586,7 @@  static int execlists_move_to_gpu(struct intel_ringbuffer *ringbuf,
 			return ret;
 
 		if (obj->base.write_domain & I915_GEM_DOMAIN_CPU)
-			flush_chipset |= i915_gem_clflush_object(obj, false);
+			i915_gem_clflush_object(obj, false);
 
 		flush_domains |= obj->base.write_domain;
 	}