summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-06-04 10:36:28 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-06-05 10:27:32 +0200
commit60ea472b116a2e245fa8579355c47eb501bfa20a (patch)
tree7a5134d62c29ca9a03a6e81aebd18da4babdfcc8
parent628c958f4881900548ed80be1286060db68e0115 (diff)
downloadlibva-intel-driver-60ea472b116a2e245fa8579355c47eb501bfa20a.tar.gz
libva-intel-driver-60ea472b116a2e245fa8579355c47eb501bfa20a.tar.bz2
libva-intel-driver-60ea472b116a2e245fa8579355c47eb501bfa20a.zip
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>
-rw-r--r--src/gen8_mfd.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/gen8_mfd.c b/src/gen8_mfd.c
index 10495d8..a080504 100644
--- a/src/gen8_mfd.c
+++ b/src/gen8_mfd.c
@@ -78,9 +78,8 @@ gen8_mfd_init_avc_surface(VADriverContextP ctx,
obj_surface->private_data = gen7_avc_surface;
}
- gen7_avc_surface->dmv_bottom_flag = (pic_param->pic_fields.bits.field_pic_flag &&
- !pic_param->seq_fields.bits.direct_8x8_inference_flag);
-
+ /* DMV buffers now relate to the whole frame, irrespective of
+ field coding modes */
if (gen7_avc_surface->dmv_top == NULL) {
gen7_avc_surface->dmv_top = dri_bo_alloc(i965->intel.bufmgr,
"direct mv w/r buffer",
@@ -88,15 +87,6 @@ gen8_mfd_init_avc_surface(VADriverContextP ctx,
0x1000);
assert(gen7_avc_surface->dmv_top);
}
-
- if (gen7_avc_surface->dmv_bottom_flag &&
- gen7_avc_surface->dmv_bottom == NULL) {
- gen7_avc_surface->dmv_bottom = dri_bo_alloc(i965->intel.bufmgr,
- "direct mv w/r buffer",
- width_in_mbs * height_in_mbs * 128,
- 0x1000);
- assert(gen7_avc_surface->dmv_bottom);
- }
}
static void