freedreno/fdl: Align after dividing by block size
authorKristian H. Kristensen <hoegsberg@google.com>
Tue, 5 May 2020 07:03:18 +0000 (00:03 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Thu, 7 May 2020 00:11:34 +0000 (17:11 -0700)
commita34b3fa198a4f87f8e07c718ec2f2e07927c6d7d
tree1dd692c4e3c9ac15dc478234291ec68757354e65
parent6292059662dccd3e151c731a3b108fd0b9e4c606
freedreno/fdl: Align after dividing by block size

For compressed formats, we need to align the number of blocks, not the
logical number of pixels in the texture.  Only compressed formats have
block width/height > 1, so we can just unconditionally multiply the
alignment by the block width/height.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4868>
src/freedreno/fdl/fd6_layout.c