freedreno: Pull the tile_alignment lookup for a layout to a helper.
authorEric Anholt <eric@anholt.net>
Tue, 12 May 2020 20:49:37 +0000 (13:49 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 19:18:16 +0000 (19:18 +0000)
commit9da4ce99538179108dc7694affc68a0e081404db
treea0dee398e154958a5475937819890a3720c9a1a4
parentdc7ccdb3f526c2e43aa48a3f5d43fea948012371
freedreno: Pull the tile_alignment lookup for a layout to a helper.

The r8g8 case UBWC alignment will be changing in the next commit, so
fdl6_get_ubwc_blockwidth needs to start paying attention to r8g8 too.

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