]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Only do a chipset flush after a clflush
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Aug 2013 13:41:09 +0000 (14:41 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 10 Aug 2013 09:26:50 +0000 (11:26 +0200)
commit8d2d9e6517d95d2bfa35dfa650330cf0b591d7e1
tree9503af9b314ab352e8fc21eee59b1cf3fe317bd4
parent5456fe3882812aba251886e36fe55bfefb8e8829
drm/i915: Only do a chipset flush after a clflush

Now that we skip clflushes more often, return a boolean indicating
whether the clflush was actually performed, and only if it was do the
chipset flush. (Though on most of the architectures where the clflush will
be skipped, the chipset flush is a no-op!)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c