]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b948653b5d2bb3ab54a5d51b6e3eb70a673709c
treea8b5492584e236e4deca2565be0d3db9d066ecaf
parentb4badec07eb0ddf931be297d9d9ccbf38897d5b7
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