summaryrefslogtreecommitdiff
path: root/src/gen6_mfc.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2012-03-16 08:48:06 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2012-03-16 09:18:00 +0800
commit7d50352a8f430e8edb4c539c1d5a321f0ba48ce7 (patch)
tree1e68e464a9e5a44603be46a4339864ee93e90b16 /src/gen6_mfc.c
parenta5ef089f4219a3ad44d234a3cf0679b87e0f2b9b (diff)
downloadlibva-intel-driver-7d50352a8f430e8edb4c539c1d5a321f0ba48ce7.tar.gz
libva-intel-driver-7d50352a8f430e8edb4c539c1d5a321f0ba48ce7.tar.bz2
libva-intel-driver-7d50352a8f430e8edb4c539c1d5a321f0ba48ce7.zip
More space for the header of picture & slice in the MFC batchbuffer
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/gen6_mfc.c')
-rw-r--r--src/gen6_mfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen6_mfc.c b/src/gen6_mfc.c
index 21d828b..9a7966b 100644
--- a/src/gen6_mfc.c
+++ b/src/gen6_mfc.c
@@ -1239,7 +1239,7 @@ gen6_mfc_batchbuffer_surfaces_output(VADriverContextP ctx,
VAEncSequenceParameterBufferH264 *pSequenceParameter = (VAEncSequenceParameterBufferH264 *)encode_state->seq_param_ext->buffer;
int width_in_mbs = pSequenceParameter->picture_width_in_mbs;
int height_in_mbs = pSequenceParameter->picture_height_in_mbs;
- mfc_context->mfc_batchbuffer_surface.num_blocks = width_in_mbs * height_in_mbs + encode_state->num_slice_params_ext * 2 + 1;
+ mfc_context->mfc_batchbuffer_surface.num_blocks = width_in_mbs * height_in_mbs + encode_state->num_slice_params_ext * 8 + 1;
mfc_context->mfc_batchbuffer_surface.size_block = 16 * CMD_LEN_IN_OWORD; /* 3 OWORDs */
mfc_context->mfc_batchbuffer_surface.pitch = 16;
mfc_context->mfc_batchbuffer_surface.bo = dri_bo_alloc(i965->intel.bufmgr,