Commit 60d7e55d authored by Xiang, Haihao's avatar Xiang, Haihao

i965_drv_video/encode: offset for coded buffer

Signed-off-by: default avatarXiang, Haihao <haihao.xiang@intel.com>
parent ecb3fc8f
......@@ -310,7 +310,7 @@ static void gen6_mfc_avc_slice_state(VADriverContextP ctx, int intra_slice)
OUT_BCS_RELOC(ctx, bcs_state->mfc_indirect_pak_bse_object.bo,
I915_GEM_DOMAIN_INSTRUCTION, I915_GEM_DOMAIN_INSTRUCTION,
ALIGN(sizeof(VACodedBufferSegment), 64));
bcs_state->mfc_indirect_pak_bse_object.offset);
OUT_BCS_BATCH(ctx, 0);
OUT_BCS_BATCH(ctx, 0);
......@@ -641,6 +641,7 @@ static VAStatus gen6_mfc_avc_prepare(VADriverContextP ctx,
bo = obj_buffer->buffer_store->bo;
assert(bo);
bcs_state->mfc_indirect_pak_bse_object.bo = bo;
bcs_state->mfc_indirect_pak_bse_object.offset = ALIGN(sizeof(VACodedBufferSegment), 64);
dri_bo_reference(bcs_state->mfc_indirect_pak_bse_object.bo);
/*Programing bcs pipeline*/
......
......@@ -80,6 +80,7 @@ struct gen6_mfc_bcs_state
struct {
dri_bo *bo;
int offset;
} mfc_indirect_pak_bse_object; //OUTPUT: the compressed bitstream
//MFX_BSP_BUF_BASE_ADDR_STATE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment