Module: Mesa Branch: master Commit: 6230407e82b955a76a9a96c6f3cc86d82bb6d90a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6230407e82b955a76a9a96c6f3cc86d82bb6d90a
Author: Leo Liu <[email protected]> Date: Sun Oct 4 12:58:07 2020 -0400 radeon/vcn: add AV1 support to the decoder This adds AV1 stream type to the AV1 decoder Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Boyuan Zhang <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7596> --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index 18b64433dc9..0c29b928905 100644 --- a/src/gallium/drivers/radeon/radeon_vcn_dec.c +++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c @@ -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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
