summaryrefslogtreecommitdiff
path: root/src/gen7_mfd.c
diff options
context:
space:
mode:
authorcarpalis <jerome.borsboom@carpalis.nl>2017-10-22 15:13:54 +0200
committerXiang, Haihao <haihao.xiang@intel.com>2018-01-05 14:57:31 +0800
commit48844541ea0eddae5188ceeb717b5a44b671488d (patch)
tree1d5588d7a28faac87cd21a0cfe58992da96af60a /src/gen7_mfd.c
parentcf28a014f718600a0583c5f64f54e36cfb7c4d11 (diff)
downloadlibva-intel-driver-48844541ea0eddae5188ceeb717b5a44b671488d.tar.gz
genX_mfd: fix hardware programming for bitplanes coded in raw mode
Bitplanes that are coded in raw mode are signalled through the raw_coding flags in the VAPictureParameterBufferVC1 structure. The absence of a bitplane does not necessarily imply that this bit is encoded in raw mode. A progressive P picture in advanced profile, for example, does not encode the SKIPMB bitplane nor does it encode this bit in raw mode. Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
Diffstat (limited to 'src/gen7_mfd.c')
-rw-r--r--src/gen7_mfd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
index 90de18ff..d5e7e142 100644
--- a/src/gen7_mfd.c
+++ b/src/gen7_mfd.c
@@ -1658,13 +1658,13 @@ gen7_mfd_vc1_pic_state(VADriverContextP ctx,
pic_param->pic_quantizer_fields.bits.pic_quantizer_type << 0);
OUT_BCS_BATCH(batch,
!!(pic_param->bitplane_present.value & 0x7f) << 31 |
- !pic_param->bitplane_present.flags.bp_forward_mb << 30 |
- !pic_param->bitplane_present.flags.bp_mv_type_mb << 29 |
- !pic_param->bitplane_present.flags.bp_skip_mb << 28 |
- !pic_param->bitplane_present.flags.bp_direct_mb << 27 |
- !pic_param->bitplane_present.flags.bp_overflags << 26 |
- !pic_param->bitplane_present.flags.bp_ac_pred << 25 |
- !pic_param->bitplane_present.flags.bp_field_tx << 24 |
+ pic_param->raw_coding.flags.forward_mb << 30 |
+ pic_param->raw_coding.flags.mv_type_mb << 29 |
+ pic_param->raw_coding.flags.skip_mb << 28 |
+ pic_param->raw_coding.flags.direct_mb << 27 |
+ pic_param->raw_coding.flags.overflags << 26 |
+ pic_param->raw_coding.flags.ac_pred << 25 |
+ pic_param->raw_coding.flags.field_tx << 24 |
pic_param->mv_fields.bits.mv_table << 20 |
pic_param->mv_fields.bits.four_mv_block_pattern_table << 18 |
pic_param->mv_fields.bits.two_mv_block_pattern_table << 16 |