summaryrefslogtreecommitdiff
path: root/src/gen8_mfc.c
diff options
context:
space:
mode:
authorZhong Li <zhong.li@intel.com>2015-04-24 16:51:00 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2015-04-29 16:01:50 +0800
commit37d1ee43a223766164ccc1de9079cac27c44e8f0 (patch)
treeefc5b682790a3e8f608dd9b76feabfa077ea2cdb /src/gen8_mfc.c
parentdbe95b6ef9915a9a6fd47fb9577cea683d5c0d56 (diff)
downloadlibva-intel-driver-37d1ee43a223766164ccc1de9079cac27c44e8f0.tar.gz
VP8 HWEnc: Alloc larger memory for internal buffer
It is to prevent the internal bitstream buffer overflow when qp is low. Signed-off-by: Zhong Li <zhong.li@intel.com>
Diffstat (limited to 'src/gen8_mfc.c')
-rw-r--r--src/gen8_mfc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen8_mfc.c b/src/gen8_mfc.c
index 5c9651f3..cd3576f8 100644
--- a/src/gen8_mfc.c
+++ b/src/gen8_mfc.c
@@ -3722,9 +3722,9 @@ static void gen8_mfc_vp8_init(VADriverContextP ctx,
assert(bo);
mfc_context->vp8_state.frame_header_bo = bo;
- mfc_context->vp8_state.intermediate_buffer_max_size = width_in_mbs * height_in_mbs * 256 * 9;
+ mfc_context->vp8_state.intermediate_buffer_max_size = width_in_mbs * height_in_mbs * 384 * 9;
for(i = 0; i < 8; i++) {
- mfc_context->vp8_state.intermediate_partition_offset[i] = width_in_mbs * height_in_mbs * 256 * (i + 1);
+ mfc_context->vp8_state.intermediate_partition_offset[i] = width_in_mbs * height_in_mbs * 384 * (i + 1);
}
dri_bo_unreference(mfc_context->vp8_state.intermediate_bo);
bo = dri_bo_alloc(i965->intel.bufmgr,