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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user