[Intel-gfx] [PATCH 2/2] drm/i915: s, fb->bits_per_pixel/8, pixel_size, in primary plane code

Daniel Vetter daniel at ffwll.ch
Wed Aug 27 17:54:42 CEST 2014


On Wed, Aug 27, 2014 at 03:21:13PM +0100, Chris Wilson wrote:
> On Wed, Aug 27, 2014 at 04:51:22PM +0300, ville.syrjala at linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> > 
> > Use the pixel_size we got from drm_format_plane_cpp() instead of
> > fb->bits_per_pixel/8 when computing the primary plane page/linear
> > offsets. Avoids a few divs and makes the code more future proof
> > against funky pixel formats where bits_per_pixel isn't well defined.
> > This is what we already did in the sprite code.
> 
> A little bit of software archeology revealed
> 
> commit ca320ac456099c29290568353d924157e626ede9
> Author: Chris Wilson <chris at chris-wilson.co.uk>
> Date:   Wed Dec 19 12:14:22 2012 +0000
> 
>     drm/i915: Use pixel size for computing linear offsets into a sprite
> 
> I misremembered that as an oops in the primary plane when using
> pixel_size.  That concern addressed,

I've added this for additional context as a note to the commit message.

> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

Both patches merged, thanks.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list