drm/i915: Split i915_gem_flush_ring() into seperate invalidate/flush funcs
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Jul 2012 11:41:08 +0000 (12:41 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 25 Jul 2012 16:23:55 +0000 (18:23 +0200)
commita7b9761d0a2ded58170ffb4d423ff3d7228103f4
tree46e5869a943be88f3068573d273f38f5a0372bcd
parent016fd0c1aee31902d82c1ac32312f1cc32298b66
drm/i915: Split i915_gem_flush_ring() into seperate invalidate/flush funcs

By moving the function to intel_ringbuffer and currying the appropriate
parameter, hopefully we make the callsites easier to read and
understand.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
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
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h