From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [Intel-gfx] [PATCH 5/6] drm/i915: Handle framebuffer offsets[] Date: Thu, 5 Jul 2012 15:01:44 +0300 Message-ID: <20120705120144.GC5936@intel.com> References: <1337882939-22274-1-git-send-email-ville.syrjala@linux.intel.com> <1337882939-22274-6-git-send-email-ville.syrjala@linux.intel.com> <20120524113132.5a7e6f6c@jbarnes-desktop> <20120524184915.GL13065@intel.com> <20120524190124.GG5078@phenom.ffwll.local> <20120705112936.GG5203@phenom.ffwll.local> 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: <20120705112936.GG5203@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 Thu, Jul 05, 2012 at 01:29:36PM +0200, Daniel Vetter wrote: > On Thu, May 24, 2012 at 09:01:24PM +0200, Daniel Vetter wrote: > > On Thu, May 24, 2012 at 09:49:15PM +0300, Ville Syrj=E4l=E4 wrote: > > > On Thu, May 24, 2012 at 11:31:32AM -0700, Jesse Barnes wrote: > > > > On Thu, 24 May 2012 21:08:58 +0300 > > > > ville.syrjala@linux.intel.com wrote: > > > > = > > > > > From: Ville Syrj=E4l=E4 > > > > > = > > > > > Take fb->offset[0] into account when calculating the linear and t= ile x/y > > > > > offsets. > > > > > = > > > > > For non-tiled surfaces fb->offset[0] is simply added to the linear > > > > > byte offset. > > > > > = > > > > > For tiled surfaces treat fb->offsets[0] as a byte offset into the > > > > > linearized view of the surface. So we end up converting fb->offse= ts[0] > > > > > into additional x and y offsets. > > > > = > > > > Do you have code using a non-zero offsets[0]? At least for current > > > > code that would indicate some kind of problem... though hopefully w= e'll > > > > be adding planar support back again sometime soon. > > > = > > > I did have some test app that used offsets[] at some point, but tbh I > > > didn't excercise these changes with it. > > > = > > > I have a sort of semi working skeleton of a test app which I just mod= ify > > > for various use cases as need arises. I really should try to clean it= up > > > a bit and generalize it so that it wouldn't need constant code changes > > > to test different scenarios. > > = > > Yeah, I want these little test apps as testcases in i-g-t. > = > Ping about these testcases, ported to i-g-t ... Sorry, haven't had time to look at those. I'm going on vacation after tomorrow but I'll add a task to the list so I won't forget about this. -- = Ville Syrj=E4l=E4 Intel OTC