radesonsi/vcn: update vcn4 tile processing logic
Vcn4 tile number calculation doesn't consider some input case, which could result in output bitstream corruption, this fixed the issue. Not using the number_of_tiles directly but from calculation. Also change to re-use some macros from local vcn_5_0.c to ac_vcn_enc.h header file. Updated vcn4 spec_misc_av1 ip package. Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Signed-off-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29556>
This commit is contained in:
@@ -1008,7 +1008,6 @@ struct pipe_av1_enc_picture_desc
|
||||
struct pipe_enc_quality_modes quality_modes;
|
||||
struct pipe_enc_intra_refresh intra_refresh;
|
||||
struct pipe_enc_roi roi;
|
||||
uint32_t num_tiles_in_pic; /* [1, 32], */
|
||||
uint32_t tile_rows;
|
||||
uint32_t tile_cols;
|
||||
unsigned num_tile_groups;
|
||||
|
||||
Reference in New Issue
Block a user