From: Jesse Barnes Subject: Re: [PATCH 2/2] drm: parse color format support for digital displays Date: Fri, 15 Apr 2011 13:39:36 -0700 Message-ID: <20110415133936.350dbf60@jbarnes-desktop> References: <1302896964-25462-1-git-send-email-jbarnes@virtuousgeek.org> <1302896964-25462-2-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from oproxy2-pub.bluehost.com (oproxy2-pub.bluehost.com [67.222.39.60]) by gabe.freedesktop.org (Postfix) with SMTP id 74EEB9E758 for ; Fri, 15 Apr 2011 13:39:49 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Dave Airlie Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Sat, 16 Apr 2011 06:10:07 +1000 Dave Airlie wrote: > > - > > +#define DRM_COLOR_FORMAT_RGB444 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(1<<0) > > +#define DRM_COLOR_FORMAT_YCRCB444 =A0 =A0 =A0(1<<1) > > +#define DRM_COLOR_FORMAT_YCRCB422 =A0 =A0 =A0(1<<2) > > =A0/* > > =A0* Describes a given display (e.g. CRT or flat panel) and its limitat= ions. > > =A0*/ > > @@ -201,6 +203,7 @@ struct drm_display_info { > > =A0 =A0 =A0 =A0unsigned int bpc; > > > > =A0 =A0 =A0 =A0enum subpixel_order subpixel_order; > > + =A0 =A0 =A0 unsigned long color_formats; > = > ^ wtf? > = > unsigned long? its 2011. That doesn't tell me much about what you'd prefer... I figured a bitfield would be fairly extensible if new surface formats were added. Maybe you're thinking it's not enough to support all the misc ones out there though? -- = Jesse Barnes, Intel Open Source Technology Center