From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Anholt Subject: Re: [PATCH 1/3] drm/i915: Unbind the bo if the user requests a different alignment Date: Tue, 13 Apr 2010 16:49:46 -0700 Message-ID: <87aat6vrol.fsf@pollan.anholt.net> References: <1270416921-25483-1-git-send-email-chris@chris-wilson.co.uk> <87ljcswq9t.fsf@pollan.anholt.net> <89khjo$f4ssom@orsmga002.jf.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1130060786==" Return-path: In-Reply-To: <89khjo$f4ssom@orsmga002.jf.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Chris Wilson , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1130060786== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 12 Apr 2010 18:23:22 +0100, Chris Wilson = wrote: > On Mon, 12 Apr 2010 10:10:22 -0700, Eric Anholt wrote: > > On Sun, 4 Apr 2010 22:35:19 +0100, Chris Wilson wrote: > > > If the buffer is currently bound and does not meet the requested > > > alignment, then unbind it and repin. > >=20 > > Do we have any users legitimately requesting an alignment? I thought > > they never existed or only lied when they did. >=20 > Yes, I invented one. ;-) Reusing surfaces within a batch with different > per-surface tiling parameters on pre-i965, without informing the kernel > that the buffer is tiled [so we can get away with reusing the surface > multiple times in the batch with different parameters...], and so having= =20 > to manually request the minimal legal alignment for the relocated bo. > Given the transient nature of clip masks, glyph masks and intermediate > back buffers, we can reuse a lot of buffers within a single batch and > avoid catastrophic aperture thrashing. > -ickle And you're guaranteeing that the transient tiled data doesn't need to have coherent contents across batchbuffer boundaries? (since it could get swapped, which means needing a17 swizzling, so the kernel would need to know about it). This sounds like madness. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvFAxoACgkQHUdvYGzw6vfy9gCgmLCKU+yq/rZHtwm+O+xXnEjt sjQAoIIQCiC9ppWwb5DjbXmPNnA8Ffv5 =cQzd -----END PGP SIGNATURE----- --=-=-=-- --===============1130060786== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1130060786==--