hardware/intel/intel-driver
Revision | e8fde1cdaafb93c2b54d6092a728d099ad7cdd11 (tree) |
---|---|
Time | 2015-02-26 09:55:50 |
Author | Zhong Li <zhong.li@inte...> |
Commiter | Xiang, Haihao |
decode/VP8: HW needs 1 extra byte for each partition
Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
Tested-by: Sean V Kelley <seanvk@posteo.de>
@@ -2985,13 +2985,13 @@ gen8_mfd_vp8_bsd_object(VADriverContextP ctx, | ||
2985 | 2985 | pic_param->bool_coder_ctx.value << 24 | /* Partition 0 Count Entropy Value */ |
2986 | 2986 | 0); |
2987 | 2987 | |
2988 | - OUT_BCS_BATCH(batch, partition_size_0); | |
2988 | + OUT_BCS_BATCH(batch, partition_size_0 + 1); | |
2989 | 2989 | OUT_BCS_BATCH(batch, offset); |
2990 | 2990 | //partion sizes in bytes are present after the above first partition when there are more than one token partition |
2991 | 2991 | offset += (partition_size_0 + 3 * (slice_param->num_of_partitions - 2)); |
2992 | 2992 | for (i = 1; i < 9; i++) { |
2993 | 2993 | if (i < slice_param->num_of_partitions) { |
2994 | - OUT_BCS_BATCH(batch, slice_param->partition_size[i]); | |
2994 | + OUT_BCS_BATCH(batch, slice_param->partition_size[i] + 1); | |
2995 | 2995 | OUT_BCS_BATCH(batch, offset); |
2996 | 2996 | } else { |
2997 | 2997 | OUT_BCS_BATCH(batch, 0); |