hardware/intel/intel-driver
Revisión | a5893c06d26d8e4435813ba0fd0e0c5f046c328e (tree) |
---|---|
Tiempo | 2014-12-14 01:26:32 |
Autor | Zhao Yakui <yakui.zhao@inte...> |
Commiter | Xiang, Haihao |
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)
@@ -638,7 +638,7 @@ static void gen9_vme_pipeline_programing(VADriverContextP ctx, | ||
638 | 638 | encoder_context); |
639 | 639 | |
640 | 640 | 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); | |
642 | 642 | BEGIN_BATCH(batch, 3); |
643 | 643 | OUT_BATCH(batch, MI_BATCH_BUFFER_START | (1 << 8) | (1 << 0)); |
644 | 644 | OUT_RELOC(batch, |
@@ -1065,7 +1065,7 @@ gen9_vme_mpeg2_pipeline_programing(VADriverContextP ctx, | ||
1065 | 1065 | encoder_context); |
1066 | 1066 | |
1067 | 1067 | 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); | |
1069 | 1069 | BEGIN_BATCH(batch, 4); |
1070 | 1070 | OUT_BATCH(batch, MI_BATCH_BUFFER_START | (1 << 8) | (1 << 0)); |
1071 | 1071 | OUT_RELOC(batch, |
@@ -1207,3 +1207,16 @@ gen8_gpe_load_kernels(VADriverContextP ctx, | ||
1207 | 1207 | return; |
1208 | 1208 | } |
1209 | 1209 | |
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 | +} |
@@ -219,4 +219,8 @@ void gen8_gpe_load_kernels(VADriverContextP ctx, | ||
219 | 219 | struct i965_gpe_context *gpe_context, |
220 | 220 | struct i965_kernel *kernel_list, |
221 | 221 | 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); | |
222 | 226 | #endif /* _I965_GPE_UTILS_H_ */ |