hardware/intel/intel-driver
Révision | 60ea472b116a2e245fa8579355c47eb501bfa20a (tree) |
---|---|
l'heure | 2014-06-05 17:27:32 |
Auteur | Gwenole Beauchesne <gwenole.beauchesne@inte...> |
Commiter | Gwenole Beauchesne |
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>
@@ -78,9 +78,8 @@ gen8_mfd_init_avc_surface(VADriverContextP ctx, | ||
78 | 78 | obj_surface->private_data = gen7_avc_surface; |
79 | 79 | } |
80 | 80 | |
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 */ | |
84 | 83 | if (gen7_avc_surface->dmv_top == NULL) { |
85 | 84 | gen7_avc_surface->dmv_top = dri_bo_alloc(i965->intel.bufmgr, |
86 | 85 | "direct mv w/r buffer", |
@@ -88,15 +87,6 @@ gen8_mfd_init_avc_surface(VADriverContextP ctx, | ||
88 | 87 | 0x1000); |
89 | 88 | assert(gen7_avc_surface->dmv_top); |
90 | 89 | } |
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 | - } | |
100 | 90 | } |
101 | 91 | |
102 | 92 | static void |