mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
radeon/vce: increase cpb height alignment
Height should be aligned with 2 macroblocks, thus making safer for tiled mode Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
fa0654fc3c
commit
e560a11b87
1 changed files with 1 additions and 1 deletions
|
|
@ -454,7 +454,7 @@ struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context,
|
|||
|
||||
get_buffer(((struct vl_video_buffer *)tmp_buf)->resources[0], NULL, &tmp_surf);
|
||||
cpb_size = align(tmp_surf->level[0].pitch_bytes, 128);
|
||||
cpb_size = cpb_size * align(tmp_surf->npix_y, 16);
|
||||
cpb_size = cpb_size * align(tmp_surf->npix_y, 32);
|
||||
cpb_size = cpb_size * 3 / 2;
|
||||
cpb_size = cpb_size * enc->cpb_num;
|
||||
if (enc->dual_pipe)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue