From: Zhenyu Wang Subject: [PATCH 3/3] i965: new state cache for SF scissor on gen6 Date: Wed, 16 Feb 2011 14:07:41 +0800 Message-ID: <1297836461-31543-5-git-send-email-zhenyuw@linux.intel.com> References: <1297836461-31543-1-git-send-email-zhenyuw@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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) In-Reply-To: <1297836461-31543-1-git-send-email-zhenyuw@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: intel-gfx@lists.freedesktop.org Cc: yuanhan.liu@intel.com List-Id: intel-gfx@lists.freedesktop.org So aub file could include SF scissor state with specific trace block type. --- src/mesa/drivers/dri/i965/brw_context.h | 4 +++- src/mesa/drivers/dri/i965/brw_state_cache.c | 2 ++ src/mesa/drivers/dri/i965/gen6_scissor_state.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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)); } -- 1.7.2.3