To match how they are encoded.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fixes: bde19c0e7ba ("panfrost: Fix tiled texture "stride"s on Bifrost")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5232>
unsigned width)
{
if (layout == MALI_TEXTURE_TILED) {
unsigned width)
{
if (layout == MALI_TEXTURE_TILED) {
- return (width < 16) ? 0 : (16 * bytes_per_pixel * width);
+ return (width < 16) ? 0 : (16 * bytes_per_pixel * ALIGN_POT(width, 16));
} else {
unreachable("TODO: AFBC on Bifrost");
}
} else {
unreachable("TODO: AFBC on Bifrost");
}