From: "Xiang, Haihao" Subject: Re: [PATCH 5/5] Xv: set up pipeline for Xv on Ivybridge Date: Fri, 24 Jun 2011 13:27:20 +0800 Message-ID: <1308893240.16356.16.camel@xhh-ctg32> References: <1308761267-13598-1-git-send-email-haihao.xiang@intel.com> <1308761267-13598-6-git-send-email-haihao.xiang@intel.com> <20110624050309.GI30431@melanie.nicotinebsd.org> 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 B3AF39ED8B for ; Thu, 23 Jun 2011 22:28:39 -0700 (PDT) In-Reply-To: <20110624050309.GI30431@melanie.nicotinebsd.org> 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: Owain Ainsworth Cc: "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org On Fri, 2011-06-24 at 13:03 +0800, Owain Ainsworth wrote: > On Thu, Jun 23, 2011 at 12:47:47AM +0800, Xiang, Haihao wrote: > > The configuration is same as that on Sandybridge, but > > many state commands are changed > > > > Signed-off-by: Xiang, Haihao > > --- > > src/i965_reg.h | 132 ++++++++++++++++ > > src/i965_video.c | 446 +++++++++++++++++++++++++++++++++++++++++++++++++++--- > > 2 files changed, 554 insertions(+), 24 deletions(-) > > > > diff --git a/src/i965_reg.h b/src/i965_reg.h > > index df41fba..ab6c020 100644 > > --- a/src/i965_reg.h > > +++ b/src/i965_reg.h > > --- a/src/i965_video.c > > +++ b/src/i965_video.c > > @@ -1445,6 +1445,7 @@ gen6_create_blend_state(ScrnInfoPtr scrn) > > > > blend_state->blend1.logic_op_enable = 1; > > blend_state->blend1.logic_op_func = 0xc; > > + blend_state->blend1.pre_blend_clamp_enable = 1; > > > > drm_intel_bo_unmap(blend_bo); > > return blend_bo; > > Can you please explain why this chunk is added for all gen6 and above? Sandybridge and Ivybridge have the same requirement about Pre-Blend Color Clamp Enable. The document says it must be enabled if the format of the render target is UNORM, and the DDX driver uses XXX_UNORM format for Xv.