nir/lower_amul: Use num_ubos/ssbos instead of recomputing it.
authorEric Anholt <eric@anholt.net>
Wed, 8 Jul 2020 19:43:16 +0000 (12:43 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Aug 2020 04:35:05 +0000 (04:35 +0000)
commit2e833b16bca66662938b139de90a1710cdc00f2b
treee81ff3e755a7aa178af66d09364d6e1a50f15536
parentadd2b44ab69719e3f01184980a05559883bc44bf
nir/lower_amul: Use num_ubos/ssbos instead of recomputing it.

Now that num_ubos is correctly maintained, we can just trust it.  Fixes an
assertion failure in freedreno I triggered on
dEQP-GLES31.functional.ubo.random.all_per_block_buffers.1 for reasons I
don't really understand.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6179>
src/compiler/nir/nir_lower_amul.c