• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine 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

Revision759e44d4cbe78cf12d287799cee5ff519080052d (tree)
Zeit2016-03-17 09:59:35
Autorpeng.chen <peng.c.chen@inte...>
CommiterXiang, Haihao

Log Message

update PIPE_MODE command setting for VP9 decoding

v2:
modify the commit message

v1:
initial

Signed-off-by: peng.chen <peng.c.chen@intel.com>

Ändern Zusammenfassung

Diff

--- a/src/gen9_mfd.c
+++ b/src/gen9_mfd.c
@@ -189,13 +189,23 @@ gen9_hcpd_pipe_mode_select(VADriverContextP ctx,
189189 int codec,
190190 struct gen9_hcpd_context *gen9_hcpd_context)
191191 {
192+ struct i965_driver_data *i965 = i965_driver_data(ctx);
192193 struct intel_batchbuffer *batch = gen9_hcpd_context->base.batch;
193194
194195 assert((codec == HCP_CODEC_HEVC) || (codec == HCP_CODEC_VP9));
195196
196- BEGIN_BCS_BATCH(batch, 4);
197+ if(IS_KBL(i965->intel.device_info))
198+ {
199+ BEGIN_BCS_BATCH(batch, 6);
197200
198- OUT_BCS_BATCH(batch, HCP_PIPE_MODE_SELECT | (4 - 2));
201+ OUT_BCS_BATCH(batch, HCP_PIPE_MODE_SELECT | (6 - 2));
202+ }
203+ else
204+ {
205+ BEGIN_BCS_BATCH(batch, 4);
206+
207+ OUT_BCS_BATCH(batch, HCP_PIPE_MODE_SELECT | (4 - 2));
208+ }
199209 OUT_BCS_BATCH(batch,
200210 (codec << 5) |
201211 (0 << 3) | /* disable Pic Status / Error Report */
@@ -203,6 +213,16 @@ gen9_hcpd_pipe_mode_select(VADriverContextP ctx,
203213 OUT_BCS_BATCH(batch, 0);
204214 OUT_BCS_BATCH(batch, 0);
205215
216+ if(IS_KBL(i965->intel.device_info))
217+ {
218+ if(codec == HCP_CODEC_VP9)
219+ OUT_BCS_BATCH(batch, 1<<6);
220+ else
221+ OUT_BCS_BATCH(batch, 0);
222+
223+ OUT_BCS_BATCH(batch, 0);
224+ }
225+
206226 ADVANCE_BCS_BATCH(batch);
207227 }
208228