radeonsi/vcn: enable vcn 4.0 encode for gfx11 asic
Enable VCN 4.0 encode for supported Asics. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16328>
This commit is contained in:
parent
efde05c631
commit
b00ab763a9
|
@ -589,7 +589,9 @@ struct pipe_video_codec *radeon_create_encoder(struct pipe_context *context,
|
|||
goto error;
|
||||
}
|
||||
|
||||
if (sscreen->info.family >= CHIP_SIENNA_CICHLID)
|
||||
if (sscreen->info.chip_class >= GFX11)
|
||||
radeon_enc_4_0_init(enc);
|
||||
else if (sscreen->info.family >= CHIP_SIENNA_CICHLID)
|
||||
radeon_enc_3_0_init(enc);
|
||||
else if (sscreen->info.family >= CHIP_RENOIR)
|
||||
radeon_enc_2_0_init(enc);
|
||||
|
|
Loading…
Reference in New Issue