From: Damien Lespiau Subject: Re: [Intel-gfx] [PATCH 10/12] drm: Don't allow multiple buffers fb with stereo modes Date: Tue, 17 Sep 2013 14:20:41 +0100 Message-ID: <20130917132041.GA3977@strange.amr.corp.intel.com> References: <1379353735-4472-1-git-send-email-damien.lespiau@intel.com> <1379353735-4472-11-git-send-email-damien.lespiau@intel.com> <20130917082046.GP4531@intel.com> <20130917090312.GG29268@strange.amr.corp.intel.com> <20130917095409.GR4531@intel.com> <20130917103748.GM32145@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20130917103748.GM32145@phenom.ffwll.local> 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: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Tue, Sep 17, 2013 at 12:37:48PM +0200, Daniel Vetter wrote: > I guess we should start to check that. For 3d framebuffers with 2 > separate buffer handles for each plane I think we need to add another flag > to addfb2, e.g. > > #define DRM_MODE_FB_3D_2_FRAMES (1<<1) /* separate left/right buffers, doubles plane count */ > > and then also throw in the respective check code into the core that > userspace supplies sufficient amounts of buffers in framebuffer_check() > by adjusting drM_format_num_planes and drm_format_plane_cpp. Would we really need that flag? we can just count the number of buffers and decide from that number whether we're in the 1 or 2 buffer(s) case? -- Damien