• 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óna5893c06d26d8e4435813ba0fd0e0c5f046c328e (tree)
Tiempo2014-12-14 01:26:32
AutorZhao Yakui <yakui.zhao@inte...>
CommiterXiang, Haihao

Log Message

Media/Skl: Add the gen9_gpe_pipeline_setup to configure the media pipeline

As some media commands related with media pipeline are updated for SKL,
one new function is used to config the media pipeline on SKL.

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

Cambiar Resumen

Diferencia incremental

--- a/src/gen9_vme.c
+++ b/src/gen9_vme.c
@@ -638,7 +638,7 @@ static void gen9_vme_pipeline_programing(VADriverContextP ctx,
638638 encoder_context);
639639
640640 intel_batchbuffer_start_atomic(batch, 0x1000);
641- gen8_gpe_pipeline_setup(ctx, &vme_context->gpe_context, batch);
641+ gen9_gpe_pipeline_setup(ctx, &vme_context->gpe_context, batch);
642642 BEGIN_BATCH(batch, 3);
643643 OUT_BATCH(batch, MI_BATCH_BUFFER_START | (1 << 8) | (1 << 0));
644644 OUT_RELOC(batch,
@@ -1065,7 +1065,7 @@ gen9_vme_mpeg2_pipeline_programing(VADriverContextP ctx,
10651065 encoder_context);
10661066
10671067 intel_batchbuffer_start_atomic(batch, 0x1000);
1068- gen8_gpe_pipeline_setup(ctx, &vme_context->gpe_context, batch);
1068+ gen9_gpe_pipeline_setup(ctx, &vme_context->gpe_context, batch);
10691069 BEGIN_BATCH(batch, 4);
10701070 OUT_BATCH(batch, MI_BATCH_BUFFER_START | (1 << 8) | (1 << 0));
10711071 OUT_RELOC(batch,
--- a/src/i965_gpe_utils.c
+++ b/src/i965_gpe_utils.c
@@ -1207,3 +1207,16 @@ gen8_gpe_load_kernels(VADriverContextP ctx,
12071207 return;
12081208 }
12091209
1210+void
1211+gen9_gpe_pipeline_setup(VADriverContextP ctx,
1212+ struct i965_gpe_context *gpe_context,
1213+ struct intel_batchbuffer *batch)
1214+{
1215+ intel_batchbuffer_emit_mi_flush(batch);
1216+
1217+ i965_gpe_select(ctx, gpe_context, batch);
1218+ gen8_gpe_state_base_address(ctx, gpe_context, batch);
1219+ gen8_gpe_vfe_state(ctx, gpe_context, batch);
1220+ gen8_gpe_curbe_load(ctx, gpe_context, batch);
1221+ gen8_gpe_idrt(ctx, gpe_context, batch);
1222+}
--- a/src/i965_gpe_utils.h
+++ b/src/i965_gpe_utils.h
@@ -219,4 +219,8 @@ void gen8_gpe_load_kernels(VADriverContextP ctx,
219219 struct i965_gpe_context *gpe_context,
220220 struct i965_kernel *kernel_list,
221221 unsigned int num_kernels);
222+
223+void gen9_gpe_pipeline_setup(VADriverContextP ctx,
224+ struct i965_gpe_context *gpe_context,
225+ struct intel_batchbuffer *batch);
222226 #endif /* _I965_GPE_UTILS_H_ */