[Intel-gfx] [PATCH 01/11] drm/i915: Fix display pixel format handling

Chris Wilson chris at chris-wilson.co.uk
Thu Nov 1 15:06:42 CET 2012


On Thu, 1 Nov 2012 16:03:13 +0200, Ville Syrjälä <ville.syrjala at linux.intel.com> wrote:
> On Wed, Oct 31, 2012 at 01:20:23PM -0700, Jesse Barnes wrote:
> > On Wed, 31 Oct 2012 17:50:14 +0200
> > ville.syrjala at linux.intel.com wrote:
> > 
> > > From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> > > 
> > > Fix support for all RGB/BGR pixel formats (except the 16:16:16:16 float
> > > format).
> > > 
> > > Fix intel_init_framebuffer() to match hardware and driver limitations:
> > > * RGB332 is not supported at all
> > > * CI8 is supported
> > > * XRGB1555 & co. are supported on Gen3 and earlier
> > > * XRGB210101010 & co. are supported from Gen4 onwards
> > > * BGR formats are supported from Gen4 onwards
> > > * YUV formats are supported from Gen5 onwards (driver limitation)
> > 
> > Yeah looks nice.  I love how our definitions have the component order
> > reversed relative to the fourcc-ish codes.
> 
> Yeah. I just copied the names more or less blindly from the spec. I
> usually prefer to keep register definitons and specs in sync, since
> it makes it easier to search for stuff in the spec. But if people
> are bothered by this mess, I won't object to changing the defns to
> match the fourcc stuff.

We have the same issue in userspace, where we follow the spec counter to
the common convention. It is just one of those things you get used to.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list