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)
commit467cffba85791cdfce38c124d75bd578f4bb8625
tree0691f4483f1ca2a2b090554682b060c208ea6886
parenta1656b9090f7008d2941c314f5a64724bea2ae37
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