From: Jesse Barnes Subject: Re: [PATCH 2/2] drm: parse color format support for digital displays Date: Fri, 22 Apr 2011 13:17:51 -0700 Message-ID: <20110422131751.303978a7@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 7DE9F9E787 for ; Fri, 22 Apr 2011 13:17:55 -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. Ok, I sent an update for this one. Also note that all these are kernel internal structures, so we can change the format field to an array or something later if we want to... Any other changes you'd like? Or do the patches look ok now (though I probably should have made the subject drm/edid rather than just drm). Thanks, -- = Jesse Barnes, Intel Open Source Technology Center