diff options
author | Leo Liu <[email protected]> | 2014-06-12 12:48:05 -0400 |
---|---|---|
committer | Christian König <[email protected]> | 2014-06-18 13:53:27 +0200 |
commit | 700100d94bcd46b6088c27cc77e12f86f9fda122 (patch) | |
tree | 25eb236c6bd167b8170e0264cb14adba161c14ee /src/gallium/drivers/radeon/radeon_vce.h | |
parent | 07964832823d3f2d67f7e756bc65d4813ac335e7 (diff) |
radeon/vce: set number of cpbs based on level
v2: add error check for cpb size 0
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_vce.h')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vce.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vce.h b/src/gallium/drivers/radeon/radeon_vce.h index 7cc87be37f3..f1dea8ae904 100644 --- a/src/gallium/drivers/radeon/radeon_vce.h +++ b/src/gallium/drivers/radeon/radeon_vce.h @@ -45,8 +45,6 @@ #define RVCE_READWRITE(buf, domain) RVCE_CS(RVCE_RELOC(buf, RADEON_USAGE_READWRITE, domain) * 4) #define RVCE_END() *begin = (&enc->cs->buf[enc->cs->cdw] - begin) * 4; } -#define RVCE_NUM_CPB_FRAMES 3 - struct r600_common_screen; /* driver dependent callback */ @@ -96,6 +94,7 @@ struct rvce_encoder { struct rvce_cpb_slot *cpb_array; struct list_head cpb_slots; + unsigned cpb_num; struct rvid_buffer *fb; struct rvid_buffer cpb; |