summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2014-06-12 12:27:31 -0400
committerChristian König <[email protected]>2014-06-18 13:53:23 +0200
commit07964832823d3f2d67f7e756bc65d4813ac335e7 (patch)
tree7617276a1d3396d02545853402247dc2608dff66
parente2db7c10d63399b6a34ba5fa56ce9e1eac402416 (diff)
radeon/vce: implement h264 level support
Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Christian König <[email protected]>
-rw-r--r--src/gallium/drivers/radeon/radeon_vce_40_2_2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vce_40_2_2.c b/src/gallium/drivers/radeon/radeon_vce_40_2_2.c
index c67f8f9b2a8..ecb4b0d3c83 100644
--- a/src/gallium/drivers/radeon/radeon_vce_40_2_2.c
+++ b/src/gallium/drivers/radeon/radeon_vce_40_2_2.c
@@ -108,7 +108,7 @@ static void create(struct rvce_encoder *enc)
RVCE_CS(0x00000000); // encUseCircularBuffer
RVCE_CS(profiles[enc->base.profile -
PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE]); // encProfile
- RVCE_CS(0x0000002a); // encLevel: 4.2
+ RVCE_CS(enc->base.level); // encLevel
RVCE_CS(0x00000000); // encPicStructRestriction
RVCE_CS(enc->base.width); // encImageWidth
RVCE_CS(enc->base.height); // encImageHeight