radeon/vce: set number of cpbs based on level
authorLeo Liu <leo.liu@amd.com>
Thu, 12 Jun 2014 16:48:05 +0000 (12:48 -0400)
committerChristian König <christian.koenig@amd.com>
Wed, 18 Jun 2014 11:53:27 +0000 (13:53 +0200)
commit700100d94bcd46b6088c27cc77e12f86f9fda122
tree25eb236c6bd167b8170e0264cb14adba161c14ee
parent07964832823d3f2d67f7e756bc65d4813ac335e7
radeon/vce: set number of cpbs based on level

v2: add error check for cpb size 0

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_vce.c
src/gallium/drivers/radeon/radeon_vce.h