From: Damien Lespiau Subject: [PATCH i-g-t 12/26] rendercopy/skl: Fix the 3DSTATE_DS instruction length Date: Fri, 26 Sep 2014 15:03:10 +0100 Message-ID: <1411740204-25709-12-git-send-email-damien.lespiau@intel.com> References: <1411740204-25709-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 mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 7557E6E055 for ; Fri, 26 Sep 2014 07:04:34 -0700 (PDT) In-Reply-To: <1411740204-25709-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org From: Zhao Yakui Reviewed-by: Damien Lespiau Signed-off-by: Zhao Yakui Signed-off-by: Ben Widawsky Signed-off-by: Damien Lespiau --- lib/rendercopy_gen9.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c index f98019e..1aacaa2 100644 --- a/lib/rendercopy_gen9.c +++ b/lib/rendercopy_gen9.c @@ -683,7 +683,7 @@ gen8_emit_gs(struct intel_batchbuffer *batch) { } static void -gen8_emit_ds(struct intel_batchbuffer *batch) { +gen9_emit_ds(struct intel_batchbuffer *batch) { OUT_BATCH(GEN7_3DSTATE_CONSTANT_DS | (11-2)); OUT_BATCH(0); OUT_BATCH(0); @@ -696,7 +696,9 @@ gen8_emit_ds(struct intel_batchbuffer *batch) { OUT_BATCH(0); OUT_BATCH(0); - OUT_BATCH(GEN7_3DSTATE_DS | (9-2)); + OUT_BATCH(GEN7_3DSTATE_DS | (11-2)); + OUT_BATCH(0); + OUT_BATCH(0); OUT_BATCH(0); OUT_BATCH(0); OUT_BATCH(0); @@ -721,7 +723,7 @@ gen8_emit_null_state(struct intel_batchbuffer *batch) { OUT_BATCH(0); OUT_BATCH(0); gen8_emit_gs(batch); - gen8_emit_ds(batch); + gen9_emit_ds(batch); gen8_emit_vs(batch); } -- 1.8.3.1