aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_vce_50.c
diff options
context:
space:
mode:
authorVeerabadhran <[email protected]>2020-02-05 19:33:01 +0530
committerVeerabadhran G <[email protected]>2020-02-12 13:43:35 +0000
commit461c40e0fd5d67dc8155ae4f6c53ddd9acd995b1 (patch)
treeb2a32b200acdb50c5f1b58307ff231f350c2b890 /src/gallium/drivers/radeon/radeon_vce_50.c
parent286141197dac9fc6765da3fa8bba571840bfa61c (diff)
radeon/vce: Move global function pointer si_get_pic_param to local encoder structure
Multi gpu use case broken when the function was global Reviewed-by: Leo Liu <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3731> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3731>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_vce_50.c')
-rw-r--r--src/gallium/drivers/radeon/radeon_vce_50.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vce_50.c b/src/gallium/drivers/radeon/radeon_vce_50.c
index f4cbc9bb82b..e480ecb749f 100644
--- a/src/gallium/drivers/radeon/radeon_vce_50.c
+++ b/src/gallium/drivers/radeon/radeon_vce_50.c
@@ -238,4 +238,5 @@ void si_vce_50_init(struct rvce_encoder *enc)
/* only the two below are different */
enc->rate_control = rate_control;
enc->encode = encode;
+ enc->si_get_pic_param = si_vce_50_get_param;
}