radeon/uvd: try to fix VC-1 decoding
authorGrigori Goronzy <greg@chown.ath.cx>
Wed, 9 Oct 2013 00:23:48 +0000 (02:23 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 9 Oct 2013 11:02:40 +0000 (13:02 +0200)
commit5403dd4b6869cabcb8e2a0ed4d4f278983d1a15c
tree055c95ad7f5d9fa3b3ced3523143ba3a97e42537
parent0bb05484bff3ff4ec791c463ed1340572da4333c
radeon/uvd: try to fix VC-1 decoding

The DPB size calculations seem to be off; there is various random
corruption happening, even with advanced profile. Always assuming
a minimum number of references appears to fix it, similarly to
H.264. This might overallocate the DPB.  Also clean up the SPS/PPS
field setup so that it matches VC-1 specifications better.

With these changes, all advanced profile VC-1 files I could get my
hand on work fine.

Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_uvd.c