From 700100d94bcd46b6088c27cc77e12f86f9fda122 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Thu, 12 Jun 2014 12:48:05 -0400 Subject: radeon/vce: set number of cpbs based on level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v2: add error check for cpb size 0 Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/drivers/radeon/radeon_vce.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gallium/drivers/radeon/radeon_vce.h') 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; -- cgit v1.2.3