[Libva] [Libva-intel-driver PATCH 11/25] Media/SKL: Follow the spec to add the pipeline_selection mask for media pipeline

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


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

Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
---
 src/i965_gpe_utils.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/i965_gpe_utils.c b/src/i965_gpe_utils.c
index ad744da..0df0ea0 100644
--- a/src/i965_gpe_utils.c
+++ b/src/i965_gpe_utils.c
@@ -1268,6 +1268,17 @@ gen9_gpe_state_base_address(VADriverContextP ctx,
     ADVANCE_BATCH(batch);
 }
 
+static void
+gen9_gpe_select(VADriverContextP ctx,
+                struct i965_gpe_context *gpe_context,
+                struct intel_batchbuffer *batch)
+{
+    BEGIN_BATCH(batch, 1);
+    OUT_BATCH(batch, CMD_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA |
+                     GEN9_PIPELINE_SELECTION_MASK);
+    ADVANCE_BATCH(batch);
+}
+
 void
 gen9_gpe_pipeline_setup(VADriverContextP ctx,
                         struct i965_gpe_context *gpe_context,
@@ -1275,7 +1286,7 @@ gen9_gpe_pipeline_setup(VADriverContextP ctx,
 {
     intel_batchbuffer_emit_mi_flush(batch);
 
-    i965_gpe_select(ctx, gpe_context, batch);
+    gen9_gpe_select(ctx, gpe_context, batch);
     gen9_gpe_state_base_address(ctx, gpe_context, batch);
     gen8_gpe_vfe_state(ctx, gpe_context, batch);
     gen8_gpe_curbe_load(ctx, gpe_context, batch);
-- 
1.9.1



More information about the Libva mailing list