hardware/intel/intel-driver
Revisión | 37d1ee43a223766164ccc1de9079cac27c44e8f0 (tree) |
---|---|
Tiempo | 2015-04-29 17:01:50 |
Autor | Zhong Li <zhong.li@inte...> |
Commiter | Xiang, Haihao |
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>
@@ -3722,9 +3722,9 @@ static void gen8_mfc_vp8_init(VADriverContextP ctx, | ||
3722 | 3722 | assert(bo); |
3723 | 3723 | mfc_context->vp8_state.frame_header_bo = bo; |
3724 | 3724 | |
3725 | - mfc_context->vp8_state.intermediate_buffer_max_size = width_in_mbs * height_in_mbs * 256 * 9; | |
3725 | + mfc_context->vp8_state.intermediate_buffer_max_size = width_in_mbs * height_in_mbs * 384 * 9; | |
3726 | 3726 | for(i = 0; i < 8; i++) { |
3727 | - mfc_context->vp8_state.intermediate_partition_offset[i] = width_in_mbs * height_in_mbs * 256 * (i + 1); | |
3727 | + mfc_context->vp8_state.intermediate_partition_offset[i] = width_in_mbs * height_in_mbs * 384 * (i + 1); | |
3728 | 3728 | } |
3729 | 3729 | dri_bo_unreference(mfc_context->vp8_state.intermediate_bo); |
3730 | 3730 | bo = dri_bo_alloc(i965->intel.bufmgr, |