• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

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

Révision60ea472b116a2e245fa8579355c47eb501bfa20a (tree)
l'heure2014-06-05 17:27:32
AuteurGwenole Beauchesne <gwenole.beauchesne@inte...>
CommiterGwenole Beauchesne

Message de Log

decoder: h264: don't allocate bottom DMV buffer on Broadwell.

Broadwell now uses a unique DMV buffer, irrespective of any field
coding mode. The dmv_buffer is not used, so it doesn't need to be
allocated at all.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>

Change Summary

Modification

--- a/src/gen8_mfd.c
+++ b/src/gen8_mfd.c
@@ -78,9 +78,8 @@ gen8_mfd_init_avc_surface(VADriverContextP ctx,
7878 obj_surface->private_data = gen7_avc_surface;
7979 }
8080
81- gen7_avc_surface->dmv_bottom_flag = (pic_param->pic_fields.bits.field_pic_flag &&
82- !pic_param->seq_fields.bits.direct_8x8_inference_flag);
83-
81+ /* DMV buffers now relate to the whole frame, irrespective of
82+ field coding modes */
8483 if (gen7_avc_surface->dmv_top == NULL) {
8584 gen7_avc_surface->dmv_top = dri_bo_alloc(i965->intel.bufmgr,
8685 "direct mv w/r buffer",
@@ -88,15 +87,6 @@ gen8_mfd_init_avc_surface(VADriverContextP ctx,
8887 0x1000);
8988 assert(gen7_avc_surface->dmv_top);
9089 }
91-
92- if (gen7_avc_surface->dmv_bottom_flag &&
93- gen7_avc_surface->dmv_bottom == NULL) {
94- gen7_avc_surface->dmv_bottom = dri_bo_alloc(i965->intel.bufmgr,
95- "direct mv w/r buffer",
96- width_in_mbs * height_in_mbs * 128,
97- 0x1000);
98- assert(gen7_avc_surface->dmv_bottom);
99- }
10090 }
10191
10292 static void