[Intel-gfx] [PATCH i-g-t 14/26] rendercopy/skl: Follow the spec to add the Pipeline selection mask
Damien Lespiau
damien.lespiau at intel.com
Fri Sep 26 16:03:12 CEST 2014
From: Zhao Yakui <yakui.zhao at intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau at intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
Signed-off-by: Ben Widawsky <benjamin.widawsky at intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
lib/gen9_render.h | 2 ++
lib/rendercopy_gen9.c | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/gen9_render.h b/lib/gen9_render.h
index 8d6398c..2cd7530 100644
--- a/lib/gen9_render.h
+++ b/lib/gen9_render.h
@@ -10,4 +10,6 @@
#define GEN9_SBE_ACTIVE_COMPONENT_XYZ 2
#define GEN9_SBE_ACTIVE_COMPONENT_XYZW 3
+#define GEN9_PIPELINE_SELECTION_MASK (3 << 8)
+
#endif
diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c
index 52fc90f..8621f7f 100644
--- a/lib/rendercopy_gen9.c
+++ b/lib/rendercopy_gen9.c
@@ -960,7 +960,8 @@ void gen9_render_copyfunc(struct intel_batchbuffer *batch,
/* Start emitting the commands. The order roughly follows the mesa blorp
* order */
- OUT_BATCH(GEN6_PIPELINE_SELECT | PIPELINE_SELECT_3D);
+ OUT_BATCH(GEN6_PIPELINE_SELECT | PIPELINE_SELECT_3D |
+ GEN9_PIPELINE_SELECTION_MASK);
gen8_emit_sip(batch);
--
1.8.3.1
More information about the Intel-gfx
mailing list