freedreno/ir3: Only lower cube image sizes once.
authorEmma Anholt <emma@anholt.net>
Tue, 17 Aug 2021 20:40:57 +0000 (13:40 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 18 Aug 2021 00:15:18 +0000 (00:15 +0000)
commit513920ba827e64c95ddb684da6ec285786cf0853
tree7ba37de77c4c13e5f8170b7e1f8ede6d2321cf02
parent89ab2a7b6f5f78cac5b34a9c66da2a8b13f8eee7
freedreno/ir3: Only lower cube image sizes once.

shader variants can cause ir3_nir_finalize() to run more than once, which
would make us keep dividing the size by 6.

Fixes: a48fc88571f9 ("freedreno/a6xx: Apply the cube image size lowering to GL, too.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12258>
src/freedreno/ir3/ir3_nir.c