freedreno/ir3: Fix SSBO size for bindless SSBO's
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 21 Jul 2020 14:20:14 +0000 (16:20 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Jul 2020 19:53:32 +0000 (19:53 +0000)
commitb559d26c74a03d20a556a977f73e999ab137c7ec
tree18f1430b07b98ec0ab1d3a07966a4672cc3237fa
parentc11c4d8d4c1c862883652b24c26365e9772d8e54
freedreno/ir3: Fix SSBO size for bindless SSBO's

We theoretically could push these sizes to the const file
opportunistically, which appears to be what the blob does, but the
maximum number of SSBO's is way too big to do that unconditionally. Just
use resinfo to get the size for now.

Fixes on turnip: dEQP-VK.ssbo.unsized_array_length.*

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6012>
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_nir.c