summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_vce.h
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2015-06-25 10:14:14 -0400
committerMarek Olšák <[email protected]>2015-08-14 15:02:31 +0200
commit09def7e1e06827ab1eae091f0e765d91c6715cf9 (patch)
tree61761c5eb3be69ec387471a3a90f335e39423c0b /src/gallium/drivers/radeon/radeon_vce.h
parent4dfcf6e3a91be97fcf9d3f44e76a7a389f8f40b2 (diff)
radeon/vce: implement VCE dual instance support
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 <[email protected]> Signed-off-by: Christian König <[email protected]> Acked-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_vce.h')
-rw-r--r--src/gallium/drivers/radeon/radeon_vce.h3
1 files changed, 3 insertions, 0 deletions
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 */