From: Chris Wilson Subject: Re: [PATCH] uxa/glamor: Prefer to create a pure glamor pixmap. Date: Fri, 23 Dec 2011 13:11:54 +0000 Message-ID: References: <1324641562-31820-1-git-send-email-zhigang.gong@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id F2DD69E7EB for ; Fri, 23 Dec 2011 05:11:58 -0800 (PST) In-Reply-To: <1324641562-31820-1-git-send-email-zhigang.gong@linux.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: zhigang.gong@linux.intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, 23 Dec 2011 19:59:22 +0800, zhigang.gong@linux.intel.com wrote: > From: Zhigang Gong > > Prefer to create a pure glamor pixmap rather than a BO and then > create a texture from that BO in glamor. As this will avoid some > glFlush requirements, it can get about 20-30% performance gain. > > When glamor is enabled, route the uxa_create_gc to glamor_create_gc. > > This commit also removed the glFlush at the intel_glamor_finish_access. > When glamor is enabled, a pixmap will not be accessed by the UXA's > accelerated function. Only un-accelerated funtion may access those > pixmap, and before each un-accelerated rendering, it calls > uxa_prepare_access which will do glFlush there. > > Removed deprecated function: intel_glamor_create_screen_image There are at least four functional changes here, each of which look like they could have unexpected side-effects. Can you break this patch down into create using glamor by default; create glamor gc; remove extraneous flush; remove dead code. -Chris -- Chris Wilson, Intel Open Source Technology Centre