From: Eric Anholt Subject: Re: [intel-gfx][PATCH] intel: add a new interface drm_intel_bo_alloc_direct Date: Wed, 26 May 2010 13:52:52 -0700 Message-ID: <87bpc21j2z.fsf@pollan.anholt.net> References: <1274764010-6660-1-git-send-email-haihao.xiang@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0028535274==" Return-path: In-Reply-To: <1274764010-6660-1-git-send-email-haihao.xiang@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 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: "Xiang, Haihao" , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0028535274== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 25 May 2010 13:06:50 +0800, "Xiang, Haihao" wrote: > This interface is the same as drm_intel_bo_alloc except the allocated > size isn't rounded up, so it bypasses the cache bucket. >=20 > The size of the BO created by drm_intel_bo_alloc for a 1920x800,4:2:0 YUV > planar surface is 4M, it is about 2.2M if using drm_intel_bo_alloc_direct. You could just init a cache bucket of that size, and get BO caching with no overhead and no new interfaces. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkv9iiQACgkQHUdvYGzw6vfMMACghkh45njCO76ON2pqJTtS6/rk 9E8An2cMqik9uT+q0h1NXi7RcFtN0iHH =4/Ce -----END PGP SIGNATURE----- --=-=-=-- --===============0028535274== 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 --===============0028535274==--