mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
912d78d4f2
commit
0b6f8588a2
2 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue