radeonsi/vcn: fix decoding bs buffer alignement issue.
authorRuijing Dong <ruijing.dong@amd.com>
Thu, 4 May 2023 01:20:51 +0000 (21:20 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 5 May 2023 14:20:21 +0000 (14:20 +0000)
commit499f332a3a5076b2d6f1f12bf728784b5e2df98b
treeec44505277fdceb7d9568c238b9cfb3d2819ad14
parent6d84b34359dcbad477209adb9f9d0592c5a71bb9
radeonsi/vcn: fix decoding bs buffer alignement issue.

reason:
  in some cases, bs buffer size could cause assertion,
  and some bitstreams of certain resolutions could
  not be decoded.

solution:
  to align the bs buffer to 128.

fixes: 4f1646d73fa8bac82ff2195f06a5f6011853f647

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/22844>
src/gallium/drivers/radeonsi/radeon_vcn_dec.c