]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/gpu/drm/i915/i915_gem_tiling.c
drm/i915: Clarify the semantics of tiling_changed
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 21 Apr 2012 15:23:23 +0000 (16:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 09:18:06 +0000 (11:18 +0200)
commit5d82e3e6427d407e5e4713a2f73210b4e7801ad3
tree15195b0bf801467db545342481d1b793bff09776
parent38de45c5fc61a4a6b2f0b4b7c9ae9f32f058f420
drm/i915: Clarify the semantics of tiling_changed

Rename obj->tiling_changed to obj->fence_dirty so that it is clear that
it flags when the parameters for an active fence (including the
no-fence) register are changed.

Also, do not set this flag when the object does not have a fence
register allocated currently and the gpu does not depend upon the
unfence. This case works exactly like when a tiled object lost its
fence and hence does not need additional handling for the tiling
change in the code.

v2: Use fence_dirty to better express what the flag tracks and add a few
more details to the comments to serve as a reminder of how the GPU also
uses the unfenced register slot.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Add some bikeshed to the commit message about the stricter
use of fence_dirty.]
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_tiling.c