drm/i915: Use pixel size for computing linear offsets into a sprite
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Dec 2012 12:14:22 +0000 (12:14 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Jan 2013 13:20:24 +0000 (14:20 +0100)
commitca320ac456099c29290568353d924157e626ede9
treea9e4eef3242183022f63a1e83aaed779a599ca08
parentc16ed4be4c3c691e8c11dc6d22490f79f030d300
drm/i915: Use pixel size for computing linear offsets into a sprite

This fixes an original bug in the sprite code that miscomputed the
source offset into a linear YUV packed framebuffer, that was magnified
into an oops with

commit 5a35e99e8162d6820013a56ad15ea8bf937af5a6
Author: Damien Lespiau <damien.lespiau@intel.com>
Date:   Fri Oct 26 18:20:12 2012 +0100

    drm/i915: adjust sprite base address

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.com>
Cc: Damien Lespiau <damien.lespiau@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sprite.c