From: Leo Liu Date: Thu, 11 Jun 2020 23:27:57 +0000 (-0400) Subject: radeon/vcn/dec: add db_aligned_height to message buffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=946c5c6b7536a3e1350f6d56cf7509d7cd3dd699;p=mesa.git radeon/vcn/dec: add db_aligned_height to message buffer This is required for Sienna Signed-off-by: Leo Liu Reviewed-by: Boyuan Zhang Reviewed-by: James Zhu Part-of: --- 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;