summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2011-04-26 13:26:38 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2011-04-26 16:10:08 +0800
commit8ea71178ade8ea2076ace283bc2d957a45eda6f6 (patch)
tree2f1c720853ae9e82ccb045e43db999d118657ed2
parent6136b5e9ae9d884a190d37008ce6c21b78d54bd2 (diff)
i965_drv_video/encode: offset for coded buffer
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--gen6_mfc.c3
-rw-r--r--gen6_mfc.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/gen6_mfc.c b/gen6_mfc.c
index 9a5c31d..c4c9f48 100644
--- a/gen6_mfc.c
+++ b/gen6_mfc.c
@@ -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*/
diff --git a/gen6_mfc.h b/gen6_mfc.h
index 44b9721..d41b383 100644
--- a/gen6_mfc.h
+++ b/gen6_mfc.h
@@ -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