nir_to_tgsi: Fix indirect addressing of atomic counters.
authorEmma Anholt <emma@anholt.net>
Mon, 2 Aug 2021 23:34:37 +0000 (16:34 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 9 Sep 2021 22:02:52 +0000 (22:02 +0000)
commit947f585e91000f5cdd94626b7903de8232fdba77
tree7f811a066b2338aaec5b5fc95703bb33be681dda
parentb05cd10b8e49a04f3382112ee568b61853fbda0e
nir_to_tgsi: Fix indirect addressing of atomic counters.

It's not actually a given that the offset within the counter buffer is a
constant.

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12781>
src/gallium/auxiliary/nir/nir_to_tgsi.c