diff options
author | Zhao, Halley <halley.zhao@intel.com> | 2014-01-15 13:21:46 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-02-27 10:30:26 +0800 |
commit | 2151cda3d3a0d7c96cd19f9b89c18d30a4b612ef (patch) | |
tree | 93318f57b8195fdbfa28cabb3119a4b51aae25b6 /src/gen8_mfd.c | |
parent | 56e328797247e655502dd0e59f739a888b3b792a (diff) | |
download | libva-intel-driver-2151cda3d3a0d7c96cd19f9b89c18d30a4b612ef.tar.gz libva-intel-driver-2151cda3d3a0d7c96cd19f9b89c18d30a4b612ef.tar.bz2 libva-intel-driver-2151cda3d3a0d7c96cd19f9b89c18d30a4b612ef.zip |
Fix vp8 partition offset set error
Signed-off-by: Zhong Li <zhong.li@intel.com>
Diffstat (limited to 'src/gen8_mfd.c')
-rw-r--r-- | src/gen8_mfd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gen8_mfd.c b/src/gen8_mfd.c index ff38c41..cd10187 100644 --- a/src/gen8_mfd.c +++ b/src/gen8_mfd.c @@ -2998,7 +2998,8 @@ gen8_mfd_vp8_bsd_object(VADriverContextP ctx, OUT_BCS_BATCH(batch, partition_size_0); OUT_BCS_BATCH(batch, offset); - offset += partition_size_0; + //partion sizes in bytes are present after the above first partition when there are more than one token partition + offset += (partition_size_0 + 3 * (slice_param->num_of_partitions - 2)); for (i = 1; i < 9; i++) { if (i < slice_param->num_of_partitions) { OUT_BCS_BATCH(batch, slice_param->partition_size[i]); |