radeon/vcn: track width and height of the last frame

Adding last width/height to keep tracking the size of the last frame.

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Acked-by: Veerabadhran Gopalakrishnan <veerabadhran.gopalakrishnan@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12368>
This commit is contained in:
Boyuan Zhang 2021-08-17 22:22:30 -04:00 committed by Marge Bot
parent 912d78d4f2
commit 0b6f8588a2
2 changed files with 5 additions and 0 deletions

View file

@ -565,6 +565,9 @@ static rvcn_dec_message_vp9_t get_vp9_msg(struct radeon_decoder *dec,
memcpy(dec->ref_codec.ref_list, result.ref_frame_map, sizeof(result.ref_frame_map));
}
dec->last_width = dec->base.width;
dec->last_height = dec->base.height;
return result;
}

View file

@ -1082,6 +1082,8 @@ struct radeon_decoder {
unsigned frame_number;
unsigned db_alignment;
unsigned dpb_size;
unsigned last_width;
unsigned last_height;
struct pipe_screen *screen;
struct radeon_winsys *ws;