summaryrefslogtreecommitdiff
path: root/src/gen7_mfd.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2013-02-22 13:56:04 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-02-22 14:06:56 +0800
commitb3139d1a278d9daac40987f0a99c2a797c0db988 (patch)
tree13eb991af88d82e58d9969231546ba7ed4564ed8 /src/gen7_mfd.c
parentf6ec762eab4e602a0644e9f17ce97dab34bf512f (diff)
downloadlibva-intel-driver-b3139d1a278d9daac40987f0a99c2a797c0db988.tar.gz
libva-intel-driver-b3139d1a278d9daac40987f0a99c2a797c0db988.tar.bz2
libva-intel-driver-b3139d1a278d9daac40987f0a99c2a797c0db988.zip
Update the size of DMV buffer for H.264 decoding on IVB
It is at least width_in_mbs * align(height_in_mbs, 2) * 64. Use width_in_mbs * (height_in_mbs + 1) * 64 in the driver. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59050 Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 00f65b78e6de520a4820702207ce098c6b073724)
Diffstat (limited to 'src/gen7_mfd.c')
-rwxr-xr-xsrc/gen7_mfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
index 8421497..ae36fce 100755
--- a/src/gen7_mfd.c
+++ b/src/gen7_mfd.c
@@ -194,7 +194,7 @@ gen7_mfd_init_avc_surface(VADriverContextP ctx,
if (gen7_avc_surface->dmv_top == NULL) {
gen7_avc_surface->dmv_top = dri_bo_alloc(i965->intel.bufmgr,
"direct mv w/r buffer",
- width_in_mbs * height_in_mbs * 64,
+ width_in_mbs * (height_in_mbs + 1) * 64,
0x1000);
assert(gen7_avc_surface->dmv_top);
}
@@ -203,7 +203,7 @@ gen7_mfd_init_avc_surface(VADriverContextP ctx,
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 * 64,
+ width_in_mbs * (height_in_mbs + 1) * 64,
0x1000);
assert(gen7_avc_surface->dmv_bottom);
}