freedreno/a6xx: Fix UBWC mipmap sizing.
authorEric Anholt <eric@anholt.net>
Wed, 6 May 2020 19:21:01 +0000 (12:21 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 19:18:16 +0000 (19:18 +0000)
commit81f21ff4ef8b5ffb770d0ff3516338ffdfce3e99
tree66e934f9fb301d5dc4f93a68f75b749af4834af4
parentb5db2a257413e2c570b49b8c2171166592f3e093
freedreno/a6xx: Fix UBWC mipmap sizing.

The HW requires a log2 width/height of the level 0 meta_* size in the
descriptors, making it pretty clear that UBWC mipmapping is all
power-of-two sized.  Fixes a bunch of failures in the upcoming unit UBWC
layout unit tests.

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