diff options
author | Zhou Chang <chang.zhou@intel.com> | 2011-10-13 15:09:00 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2011-10-13 16:00:02 +0800 |
commit | 79ee36df64aa26ab3309487a3c24f6881d7fdd70 (patch) | |
tree | 33ee68f17872993e6f6d09180a9c4de8b350bdc5 /src/gen6_vme.c | |
parent | fbb303ed9aa88c8f8466cce24368dadf474d3e08 (diff) | |
download | libva-intel-driver-79ee36df64aa26ab3309487a3c24f6881d7fdd70.tar.gz libva-intel-driver-79ee36df64aa26ab3309487a3c24f6881d7fdd70.tar.bz2 libva-intel-driver-79ee36df64aa26ab3309487a3c24f6881d7fdd70.zip |
Fixed 1080p issue and add transform 8x8 support.
Diffstat (limited to 'src/gen6_vme.c')
-rw-r--r-- | src/gen6_vme.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gen6_vme.c b/src/gen6_vme.c index bcfbee5..a979dc8 100644 --- a/src/gen6_vme.c +++ b/src/gen6_vme.c @@ -786,8 +786,9 @@ static int gen6_vme_media_object(VADriverContextP ctx, struct i965_driver_data *i965 = i965_driver_data(ctx); struct intel_batchbuffer *batch = gen6_encoder_context->base.batch; struct object_surface *obj_surface = SURFACE(encode_state->current_render_target); + VAEncPictureParameterBufferH264 *pPicParameter = (VAEncPictureParameterBufferH264 *)encode_state->pic_param_ext->buffer; int mb_width = ALIGN(obj_surface->orig_width, 16) / 16; - int len_in_dowrds = 6 + 1; + int len_in_dowrds = 6 + 2; /*6 + n: n is number of inline data*/ BEGIN_BATCH(batch, len_in_dowrds); @@ -800,6 +801,8 @@ static int gen6_vme_media_object(VADriverContextP ctx, /*inline data */ OUT_BATCH(batch, mb_width << 16 | mb_y << 8 | mb_x); /*M0.0 Refrence0 X,Y, not used in Intra*/ + OUT_BATCH(batch, pPicParameter->pic_fields.bits.transform_8x8_mode_flag); /* Enabling or disabling 8x8,4x4 Intra mode, + more control flags will added here.*/ ADVANCE_BATCH(batch); return len_in_dowrds * 4; |