]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Rebind the buffer if its alignment constraints changes with tiling
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Mar 2011 10:42:03 +0000 (10:42 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Mar 2011 11:02:16 +0000 (11:02 +0000)
commit410cb106e16285ffdff422dc232d8b10d7547f46
tree0691f4483f1ca2a2b090554682b060c208ea6886
parent4ca73b21d9477a3e9219e7cfeef38aeeadda64cc
drm/i915: Rebind the buffer if its alignment constraints changes with tiling

Early gen3 and gen2 chipset do not have the relaxed per-surface tiling
constraints of the later chipsets, so we need to check that the GTT
alignment is correct for the new tiling. If it is not, we need to
rebind.

Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_tiling.c