From 09def7e1e06827ab1eae091f0e765d91c6715cf9 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Thu, 25 Jun 2015 10:14:14 -0400 Subject: radeon/vce: implement VCE dual instance support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VCE dual instances are encoding in parallel, it needs two frames for encoding with their own parameters in one IB. Master instance will check the task info to find another frame, assign it to the slave instance Signed-off-by: Leo Liu Signed-off-by: Christian König Acked-by: Alex Deucher --- src/gallium/drivers/radeon/radeon_vce.h | 3 +++ 1 file changed, 3 insertions(+) (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 06e9868ca96..624bda479f8 100644 --- a/src/gallium/drivers/radeon/radeon_vce.h +++ b/src/gallium/drivers/radeon/radeon_vce.h @@ -106,11 +106,14 @@ struct rvce_encoder { struct rvid_buffer *fb; struct rvid_buffer cpb; struct pipe_h264_enc_picture_desc pic; + unsigned task_info_idx; + unsigned bs_idx; bool use_vm; bool use_vui; bool dual_pipe; + bool dual_inst; }; /* CPB handling functions */ -- cgit v1.2.3