From: Jesse Barnes Subject: Re: [PATCH 2/2] drm: parse color format support for digital displays Date: Fri, 15 Apr 2011 13:45:47 -0700 Message-ID: <20110415134547.219b708f@jbarnes-desktop> References: <1302896964-25462-1-git-send-email-jbarnes@virtuousgeek.org> <1302896964-25462-2-git-send-email-jbarnes@virtuousgeek.org> <20110415133936.350dbf60@jbarnes-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from oproxy1-pub.bluehost.com (oproxy1-pub.bluehost.com [66.147.249.253]) by gabe.freedesktop.org (Postfix) with SMTP id A0EEB9E758 for ; Fri, 15 Apr 2011 13:45:58 -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:42:44 +1000 Dave Airlie wrote: > On Sat, Apr 16, 2011 at 6:39 AM, Jesse Barnes = wrote: > > 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 limi= tations. > >> > =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... =A0I 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? > = > Its unsigned long, its a different size on 32 and 64-bit, not > something I want to fall > over when you add the 33rd bit field. I hope we don't get to more than 32, but sure I'll change it to u32 to match some of the other flags. -- = Jesse Barnes, Intel Open Source Technology Center