diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2011-04-26 13:26:38 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2011-04-26 16:10:08 +0800 |
commit | 8ea71178ade8ea2076ace283bc2d957a45eda6f6 (patch) | |
tree | 2f1c720853ae9e82ccb045e43db999d118657ed2 | |
parent | 6136b5e9ae9d884a190d37008ce6c21b78d54bd2 (diff) |
i965_drv_video/encode: offset for coded buffer
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r-- | gen6_mfc.c | 3 | ||||
-rw-r--r-- | gen6_mfc.h | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -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 |