hardware/intel/intel-driver
Révision | bcdfd5a91cc23b95cd6c50d1f3908112321dc907 (tree) |
---|---|
l'heure | 2014-12-14 01:26:32 |
Auteur | Zhao Yakui <yakui.zhao@inte...> |
Commiter | Xiang, Haihao |
Media/SKL: Follow the spec to add the pipeline_selection mask for media pipeline
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 79f35e7cb2a98168cc50fcda1fb83fb18c25ee53)
@@ -1268,6 +1268,17 @@ gen9_gpe_state_base_address(VADriverContextP ctx, | ||
1268 | 1268 | ADVANCE_BATCH(batch); |
1269 | 1269 | } |
1270 | 1270 | |
1271 | +static void | |
1272 | +gen9_gpe_select(VADriverContextP ctx, | |
1273 | + struct i965_gpe_context *gpe_context, | |
1274 | + struct intel_batchbuffer *batch) | |
1275 | +{ | |
1276 | + BEGIN_BATCH(batch, 1); | |
1277 | + OUT_BATCH(batch, CMD_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA | | |
1278 | + GEN9_PIPELINE_SELECTION_MASK); | |
1279 | + ADVANCE_BATCH(batch); | |
1280 | +} | |
1281 | + | |
1271 | 1282 | void |
1272 | 1283 | gen9_gpe_pipeline_setup(VADriverContextP ctx, |
1273 | 1284 | struct i965_gpe_context *gpe_context, |
@@ -1275,7 +1286,7 @@ gen9_gpe_pipeline_setup(VADriverContextP ctx, | ||
1275 | 1286 | { |
1276 | 1287 | intel_batchbuffer_emit_mi_flush(batch); |
1277 | 1288 | |
1278 | - i965_gpe_select(ctx, gpe_context, batch); | |
1289 | + gen9_gpe_select(ctx, gpe_context, batch); | |
1279 | 1290 | gen9_gpe_state_base_address(ctx, gpe_context, batch); |
1280 | 1291 | gen8_gpe_vfe_state(ctx, gpe_context, batch); |
1281 | 1292 | gen8_gpe_curbe_load(ctx, gpe_context, batch); |