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>
Thu, 22 Aug 2013 11:31:34 +0000 (13:31 +0200)
commit000433b67e46771a7c08f78574943855a98c53ec
tree7a7ef8cd2425158d0f376c130a3505560fd0a585
parentd46f1c3f1372e3a72fab97c60480aa4a1084387f
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