mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
radeon/vcn: add AV1 support to the decoder
This adds AV1 stream type to the AV1 decoder Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7596>
This commit is contained in:
parent
80f145a0a7
commit
6230407e82
1 changed files with 4 additions and 1 deletions
|
|
@ -1629,6 +1629,9 @@ struct pipe_video_codec *radeon_create_decoder(struct pipe_context *context,
|
|||
case PIPE_VIDEO_FORMAT_VP9:
|
||||
stream_type = RDECODE_CODEC_VP9;
|
||||
break;
|
||||
case PIPE_VIDEO_FORMAT_AV1:
|
||||
stream_type = RDECODE_CODEC_AV1;
|
||||
break;
|
||||
case PIPE_VIDEO_FORMAT_JPEG:
|
||||
stream_type = RDECODE_CODEC_JPEG;
|
||||
ring = RING_VCN_JPEG;
|
||||
|
|
@ -1690,7 +1693,7 @@ struct pipe_video_codec *radeon_create_decoder(struct pipe_context *context,
|
|||
si_vid_clear_buffer(context, &dec->msg_fb_it_probs_buffers[i]);
|
||||
si_vid_clear_buffer(context, &dec->bs_buffers[i]);
|
||||
|
||||
if (have_probs(dec)) {
|
||||
if (have_probs(dec) && dec->stream_type == RDECODE_CODEC_VP9) {
|
||||
struct rvid_buffer *buf;
|
||||
void *ptr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue