drm/i915: adjust framebuffer base address on gen4+
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 5 Jul 2012 10:17:30 +0000 (12:17 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 5 Jul 2012 11:36:01 +0000 (13:36 +0200)
The tileoffset register only supports a limited offset in x/y of 4096,
so for giant screen configuration with a shared fb we wrap around.

Fix this by computing a linear offset in tiles (pages) and only use
the tileoffset register to offset within the tile.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c

Simple merge
Simple merge