From patchwork Wed Feb 16 06:07:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhenyu Wang X-Patchwork-Id: 565791 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1G69rcs030813 for ; Wed, 16 Feb 2011 06:10:14 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 951B39E98B for ; Tue, 15 Feb 2011 22:09:53 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 5911B9E7EA for ; Tue, 15 Feb 2011 22:08:14 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 15 Feb 2011 22:07:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,479,1291622400"; d="scan'208";a="603105407" Received: from ubuntu-hp.sh.intel.com ([10.239.36.56]) by orsmga002.jf.intel.com with ESMTP; 15 Feb 2011 22:07:46 -0800 From: Zhenyu Wang To: intel-gfx@lists.freedesktop.org Date: Wed, 16 Feb 2011 14:07:41 +0800 Message-Id: <1297836461-31543-5-git-send-email-zhenyuw@linux.intel.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1297836461-31543-1-git-send-email-zhenyuw@linux.intel.com> References: <1297836461-31543-1-git-send-email-zhenyuw@linux.intel.com> Cc: yuanhan.liu@intel.com Subject: [Intel-gfx] [PATCH 3/3] i965: new state cache for SF scissor on gen6 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 16 Feb 2011 06:10:14 +0000 (UTC) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index ea74530..33d72d2 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -313,7 +313,8 @@ enum brw_cache_id { BRW_WM_UNIT, BRW_SF_PROG, BRW_SF_VP, - BRW_SF_UNIT, /* scissor state on gen6 */ + BRW_SF_UNIT, + BRW_SF_SCISSOR_UNIT, BRW_VS_UNIT, BRW_VS_PROG, BRW_GS_UNIT, @@ -387,6 +388,7 @@ struct brw_tracked_state { #define CACHE_NEW_SF_PROG (1<sf.state_bo); - brw->sf.state_bo = brw_cache_data(&brw->cache, BRW_SF_UNIT, + brw->sf.state_bo = brw_cache_data(&brw->cache, BRW_SF_SCISSOR_UNIT, &scissor, sizeof(scissor)); }