]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only apply the mb() when flushing the GTT domain during a finish
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 9 Oct 2012 18:24:38 +0000 (19:24 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 20 Jan 2013 12:11:17 +0000 (13:11 +0100)
commit7ed2cb080a6e0bd91d45f868fafb2d1b3000265c
tree7316ce9d5bab69dc233f98f6860a1df510e1fa19
parent59c5e2bf9aed712d96da7b31ac0b2d191df4c5fd
drm/i915: Only apply the mb() when flushing the GTT domain during a finish

Now that we seem to have brought order to the GTT barriers, the last one
to review is the terminal barrier before we unbind the buffer from the
GTT. This needs to only be performed if the buffer still resides in the
GTT domain, and so we can skip some needless barriers otherwise.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c