• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/intel-driver


Commit MetaInfo

Revisión01941a2ae08a69512b708d91efd9191edeb7e723 (tree)
Tiempo2014-12-14 01:26:32
AutorZhao Yakui <yakui.zhao@inte...>
CommiterXiang, Haihao

Log Message

Media/SKL: Follow the spec to add the FORCE_MEDIA_AWAKE for media pipeline

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 1927da361bd529405340ca042df3ff9d4e5bb3e7)

Cambiar Resumen

Diferencia incremental

--- a/src/gen9_vme.c
+++ b/src/gen9_vme.c
@@ -648,6 +648,8 @@ static void gen9_vme_pipeline_programing(VADriverContextP ctx,
648648 OUT_BATCH(batch, 0);
649649 ADVANCE_BATCH(batch);
650650
651+ gen9_gpe_pipeline_end(ctx, &vme_context->gpe_context, batch);
652+
651653 intel_batchbuffer_end_atomic(batch);
652654 }
653655
@@ -1076,6 +1078,8 @@ gen9_vme_mpeg2_pipeline_programing(VADriverContextP ctx,
10761078 OUT_BATCH(batch, 0);
10771079 ADVANCE_BATCH(batch);
10781080
1081+ gen9_gpe_pipeline_end(ctx, &vme_context->gpe_context, batch);
1082+
10791083 intel_batchbuffer_end_atomic(batch);
10801084 }
10811085
--- a/src/i965_defines.h
+++ b/src/i965_defines.h
@@ -851,5 +851,8 @@
851851
852852
853853 #define GEN9_PIPELINE_SELECTION_MASK (0x3 << 8)
854+#define GEN9_FORCE_MEDIA_AWAKE_MASK (1 << 13)
855+#define GEN9_FORCE_MEDIA_AWAKE_ON (1 << 5)
856+#define GEN9_FORCE_MEDIA_AWAKE_OFF (0 << 5)
854857
855858 #endif /* _I965_DEFINES_H_ */
--- a/src/i965_gpe_utils.c
+++ b/src/i965_gpe_utils.c
@@ -1275,7 +1275,9 @@ gen9_gpe_select(VADriverContextP ctx,
12751275 {
12761276 BEGIN_BATCH(batch, 1);
12771277 OUT_BATCH(batch, CMD_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA |
1278- GEN9_PIPELINE_SELECTION_MASK);
1278+ GEN9_PIPELINE_SELECTION_MASK |
1279+ GEN9_FORCE_MEDIA_AWAKE_ON |
1280+ GEN9_FORCE_MEDIA_AWAKE_MASK);
12791281 ADVANCE_BATCH(batch);
12801282 }
12811283
@@ -1292,3 +1294,16 @@ gen9_gpe_pipeline_setup(VADriverContextP ctx,
12921294 gen8_gpe_curbe_load(ctx, gpe_context, batch);
12931295 gen8_gpe_idrt(ctx, gpe_context, batch);
12941296 }
1297+
1298+void
1299+gen9_gpe_pipeline_end(VADriverContextP ctx,
1300+ struct i965_gpe_context *gpe_context,
1301+ struct intel_batchbuffer *batch)
1302+{
1303+ BEGIN_BATCH(batch, 1);
1304+ OUT_BATCH(batch, CMD_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA |
1305+ GEN9_PIPELINE_SELECTION_MASK |
1306+ GEN9_FORCE_MEDIA_AWAKE_OFF |
1307+ GEN9_FORCE_MEDIA_AWAKE_MASK);
1308+ ADVANCE_BATCH(batch);
1309+}
--- a/src/i965_gpe_utils.h
+++ b/src/i965_gpe_utils.h
@@ -223,4 +223,9 @@ void gen8_gpe_load_kernels(VADriverContextP ctx,
223223 void gen9_gpe_pipeline_setup(VADriverContextP ctx,
224224 struct i965_gpe_context *gpe_context,
225225 struct intel_batchbuffer *batch);
226+
227+void gen9_gpe_pipeline_end(VADriverContextP ctx,
228+ struct i965_gpe_context *gpe_context,
229+ struct intel_batchbuffer *batch);
230+
226231 #endif /* _I965_GPE_UTILS_H_ */