From 833e47662436094646f8510e7f9e7b3edd3d6b89 Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Wed, 22 Jan 2014 09:37:24 +0800 Subject: rendercopy/skl: Fix the 3DSTATE_DS instruction length 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(-) (limited to 'lib/rendercopy_gen9.c') diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c index f98019ee..1aacaa21 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); } -- cgit v1.2.3