drm/i915: Reorganise rules for get_fence/put_fence
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Mar 2012 15:10:00 +0000 (15:10 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 Apr 2012 19:14:04 +0000 (21:14 +0200)
commit9a5a53b3923d6e8cc4d3b352301059ac6b5c8f68
treea8b5492584e236e4deca2565be0d3db9d066ecaf
parentcce66a283e36e7479774de47ae9f33f7db2b8fcf
drm/i915: Reorganise rules for get_fence/put_fence

By simplifying the rules to calling get_fence when writing to the
through the GTT in a tiled manner, and calling put_fence before writing
to the object through the GTT in a linear manner, the code becomes
clearer and there is less chance of making a mistake.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[danvet: fixed up conflict with ppgtt code and spelling in a new
comment.]
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_display.c