spirv: Also copy over binding information for atomic counters
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 24 Jul 2020 15:04:48 +0000 (10:04 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jul 2020 18:17:38 +0000 (18:17 +0000)
commit63cf8adb12440512226dddbe3e233bcba87c7c18
treec510dd0fff4c0480f2a1f3002f7af5d6351ee900
parent6cbdffd79ce2725bcac94cd2ce412461883a51c1
spirv: Also copy over binding information for atomic counters

I missed this if statement so atomic counters weren't getting bindings
and, when you have more than one of them, that meant they were all
getting combined into one.

Fixes: 3584cb09bc15 "spirv: Give atomic counters their own variable mode"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6060>
src/compiler/spirv/vtn_variables.c