amd/common: Handle alignment of 96-bit formats.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 23 Dec 2019 01:02:20 +0000 (02:02 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 29 Dec 2019 23:02:46 +0000 (00:02 +0100)
commit88f567b5ce3c692dbee60ba58df3af7c614e4333
tree198d79340e88018b0edd8f6670140983cf73558b
parentb0203b561c79ded53291fdf1d5923c613b970fa3
amd/common: Handle alignment of 96-bit formats.

addrlib doesn't quite do it right, so do it ourselves.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2162
CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_surface.c