diff options
author | Thong Thai <[email protected]> | 2020-06-11 19:02:27 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2020-06-18 09:58:03 -0400 |
commit | 9d5d4f9eaac9dd419373e6a660f80aaf2bfbde5b (patch) | |
tree | 710b80d7c0d9ac884c29738bb113111f08fe3680 /src/gallium/drivers/radeon/radeon_vcn_enc.c | |
parent | 946c5c6b7536a3e1350f6d56cf7509d7cd3dd699 (diff) |
radeon/vcn: add vcn 3.0 encode support
Signed-off-by: Thong Thai <[email protected]>
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Boyuan Zhang <[email protected]>
Reviewed-by: James Zhu <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5501>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_vcn_enc.c')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vcn_enc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vcn_enc.c b/src/gallium/drivers/radeon/radeon_vcn_enc.c index 8635f9d52d0..13ac891b34e 100644 --- a/src/gallium/drivers/radeon/radeon_vcn_enc.c +++ b/src/gallium/drivers/radeon/radeon_vcn_enc.c @@ -441,10 +441,12 @@ struct pipe_video_codec *radeon_create_encoder(struct pipe_context *context, goto error; } - if (sscreen->info.family <= CHIP_RAVEN2) - radeon_enc_1_2_init(enc); - else + if (sscreen->info.family >= CHIP_SIENNA) + radeon_enc_3_0_init(enc); + else if (sscreen->info.family >= CHIP_RENOIR) radeon_enc_2_0_init(enc); + else + radeon_enc_1_2_init(enc); return &enc->base; |