From: Chris Wilson Subject: Re: [PATCH] enable BLT acceleate on gen6 Date: Fri, 29 Oct 2010 09:39:35 +0100 Message-ID: <5b55a1$igls1a@fmsmga002.fm.intel.com> References: <1288329512-1721-1-git-send-email-nanhai.zou@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 933419F50D for ; Fri, 29 Oct 2010 01:39:38 -0700 (PDT) In-Reply-To: <1288329512-1721-1-git-send-email-nanhai.zou@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: Zou Nan hai , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, 29 Oct 2010 13:18:32 +0800, Zou Nan hai wrote: > uxa: enable BLT command on gen6, > BLT command will goto BLT ring buffer > on gen6. Can we break this down into two patches? 1. enable BLT batches. 2. re-enable snb 2d. [3. renaming i830_uxa] > +#define RENDER_BATCH 0 > +#define BLT_BATCH 1 > + unsigned int current_batch; If you use RENDER_BATCH=1, and BLT_BATCH=3, then... > - if (ret == 0) > - ret = dri_bo_exec(intel->batch_bo, intel->batch_used*4, > - NULL, 0, 0xffffffff); > + if (ret == 0) { > + if (intel->current_batch == RENDER_BATCH) > + ret = dri_bo_exec(intel->batch_bo, intel->batch_used*4, > + NULL, 0, 0xffffffff); > + else > + ret = drm_intel_bo_mrb_exec(intel->batch_bo, > + intel->batch_used*4, > + NULL, 0, 0xffffffff, I915_EXEC_BLT); > + } just becomes: if (ret == 0) ret = drm_intel_bo_mrb_exec(intel->batch_bo, intel->batch_used*4, NULL, 0, 0xffffffff, intel->current_batch) -Chris -- Chris Wilson, Intel Open Source Technology Centre