From: Damien Lespiau Subject: Re: [PATCH 05/12] drm/edid: Expose mandatory stereo modes for HDMI sinks Date: Tue, 17 Sep 2013 14:48:31 +0100 Message-ID: <20130917134831.GB4516@strange.amr.corp.intel.com> References: <1379353735-4472-1-git-send-email-damien.lespiau@intel.com> <1379353735-4472-6-git-send-email-damien.lespiau@intel.com> <20130916182931.GM4531@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20130916182931.GM4531@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Mon, Sep 16, 2013 at 09:29:31PM +0300, Ville Syrj=E4l=E4 wrote: > > +struct stereo_mandatory_mode { > > + int width, height, freq; [..] > > + unsigned int interlace_flag, layouts; > = > What's the benefit of separating the two? Just that we can easily cycle through the layout flags and add a mode per flag without having to clear the interlace bit. Trade 16 bytes against = one instruction or so, can do I guess. -- = Damien