[Libva] [Libva-intel-driver PATCH 07/25] Rendering/SKL: Follw the spec to add the PIPE_SELECTION mask for pipeline selection

Xiang, Haihao haihao.xiang at intel.com
Mon Nov 17 20:45:13 PST 2014


From: Zhao Yakui <yakui.zhao at intel.com>

Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
---
 src/gen9_render.c  | 3 ++-
 src/i965_defines.h | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gen9_render.c b/src/gen9_render.c
index f64f486..6b2d61f 100644
--- a/src/gen9_render.c
+++ b/src/gen9_render.c
@@ -1269,7 +1269,8 @@ gen9_emit_invarient_states(VADriverContextP ctx)
     struct intel_batchbuffer *batch = i965->batch;
 
     BEGIN_BATCH(batch, 1);
-    OUT_BATCH(batch, CMD_PIPELINE_SELECT | PIPELINE_SELECT_3D);
+    OUT_BATCH(batch, CMD_PIPELINE_SELECT | PIPELINE_SELECT_3D |
+                     GEN9_PIPELINE_SELECTION_MASK);
     ADVANCE_BATCH(batch);
 
     BEGIN_BATCH(batch, 2);
diff --git a/src/i965_defines.h b/src/i965_defines.h
index 33829db..12f9389 100755
--- a/src/i965_defines.h
+++ b/src/i965_defines.h
@@ -850,4 +850,6 @@
 
 
 
+#define GEN9_PIPELINE_SELECTION_MASK        (0x3 << 8)
+
 #endif /* _I965_DEFINES_H_ */
-- 
1.9.1



More information about the Libva mailing list