]> git.baikalelectronics.ru Git - kernel.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>
Thu, 22 Aug 2013 11:31:34 +0000 (13:31 +0200)
commitece704d54d8b8ff16cce7a9c1fb402e11004dfc4
tree7a7ef8cd2425158d0f376c130a3505560fd0a585
parentb58f8be8b44b2c3773f85dab1b85195940f0d9fc
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