diff options
author | Leo Liu <[email protected]> | 2020-06-11 19:27:57 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2020-06-18 09:58:03 -0400 |
commit | 946c5c6b7536a3e1350f6d56cf7509d7cd3dd699 (patch) | |
tree | 695667228d7ecbb095db3f76f8c65f634a97cacb /src/gallium/drivers | |
parent | 384195b041d077979d66af2a43dbcc800b1b75f9 (diff) |
radeon/vcn/dec: add db_aligned_height to message buffer
This is required for Sienna
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Boyuan Zhang <[email protected]>
Reviewed-by: James Zhu <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5501>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vcn_dec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index 1e83ef3dc7b..6bc60061aab 100644 --- a/src/gallium/drivers/radeon/radeon_vcn_dec.c +++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c @@ -824,6 +824,10 @@ static struct pb_buffer *rvcn_dec_message_decode(struct radeon_decoder *dec, dec->base.width > 32 && dec->stream_type == RDECODE_CODEC_VP9) ? align(dec->base.width, 64) : align(dec->base.width, 32); + if (((struct si_screen*)dec->screen)->info.family >= CHIP_SIENNA && + dec->stream_type == RDECODE_CODEC_VP9) + decode->db_aligned_height = align(dec->base.height, 64); + decode->db_surf_tile_config = 0; decode->dt_pitch = luma->surface.u.gfx9.surf_pitch * luma->surface.blk_w; |