clover: Use args.size() to compute new var locations
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 1 Sep 2020 15:30:17 +0000 (10:30 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 18:02:50 +0000 (18:02 +0000)
commit8bea5aaa149a349af55552f47dc248a327ea7929
tree7ee5b475b3ad972369cedf1aade225b7b925d3c6
parent9641f483e94a18e5eba5f6d251aa75af8660454e
clover: Use args.size() to compute new var locations

This is better than using num_uniforms as it guarantees what we want: a
mapping from nir_variable to the args vector.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6472>
src/gallium/frontends/clover/nir/invocation.cpp