From: Daniel Vetter Subject: Re: [intel-gfx][PATCH] intel: add a new interface drm_intel_bo_alloc_direct Date: Fri, 28 May 2010 16:04:48 +0200 Message-ID: <20100528140447.GC3612@viiv.ffwll.ch> References: <1274764010-6660-1-git-send-email-haihao.xiang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.ffwll.ch (cable-static-49-187.intergga.ch [157.161.49.187]) by gabe.freedesktop.org (Postfix) with ESMTP id DFAE49E76C for ; Fri, 28 May 2010 07:03:57 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1274764010-6660-1-git-send-email-haihao.xiang@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: "Xiang, Haihao" Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, May 25, 2010 at 01:06:50PM +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. > > 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. Have you tried either Chris Wilson's or my fair-lru eviction patches? They should help quite a lot, especially for many big objects of exactly the same size like libva uses. Cause even 2*23*4M = 184 should decently fit into a 256M aperture - which is what I have here for my ilk machine. Dunno whether that 23 for the number of reference framse is correct, but it's certainly an upper bound. Yours, Daniel -- Daniel Vetter Mail: daniel@ffwll.ch M bile: +41 (0)79 365 57 48