drm/i915: Handle framebuffer offsets[]
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 11 May 2012 16:56:02 +0000 (19:56 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 25 Oct 2012 16:57:38 +0000 (19:57 +0300)
commit0aa0eec429f6bfda179c5fbc96cc65b7c0443543
treebc08053d6a03312d6e10f3db9362843891c2403f
parentc1b3e4e9bd1f6712c8571fb2b0a7b44a7d0295a0
drm/i915: Handle framebuffer offsets[]

Take fb->offset[0] into account when calculating the linear and tile x/y
offsets.

For non-tiled surfaces fb->offset[0] is simply added to the linear
byte offset.

For tiled surfaces treat fb->offsets[0] as a byte offset into the
linearized view of the surface. So we end up converting fb->offsets[0]
into additional x and y offsets.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/intel_display.c