From: Damien Lespiau Subject: [PATCH 1/4] rendercopy/bdw: Fix the STATE_SIP instruction length Date: Fri, 22 Nov 2013 18:25:59 +0000 Message-ID: <1385144762-13847-2-git-send-email-damien.lespiau@intel.com> References: <1385144762-13847-1-git-send-email-damien.lespiau@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 03032FACF5 for ; Fri, 22 Nov 2013 10:26:13 -0800 (PST) In-Reply-To: <1385144762-13847-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Damien Lespiau --- lib/rendercopy_gen8.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index 660ff03..723f4ef 100644 --- a/lib/rendercopy_gen8.c +++ b/lib/rendercopy_gen8.c @@ -470,8 +470,9 @@ gen6_create_scissor_rect(struct intel_batchbuffer *batch) } static void -gen6_emit_sip(struct intel_batchbuffer *batch) { - OUT_BATCH(GEN6_STATE_SIP | 0); +gen8_emit_sip(struct intel_batchbuffer *batch) { + OUT_BATCH(GEN6_STATE_SIP | (3 - 2)); + OUT_BATCH(0); OUT_BATCH(0); } @@ -887,7 +888,7 @@ void gen8_render_copyfunc(struct intel_batchbuffer *batch, * order */ OUT_BATCH(GEN6_PIPELINE_SELECT | PIPELINE_SELECT_3D); - gen6_emit_sip(batch); + gen8_emit_sip(batch); gen7_emit_push_constants(batch); -- 1.8.3.1