broadcom/compiler: use proper type field for atomic operations
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 28 Apr 2021 22:57:25 +0000 (00:57 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 1 Jun 2021 10:22:22 +0000 (12:22 +0200)
commit4e9f1261eedf047d1198877b1debd7ee9e1715ee
tree92468ee776fa3422c615f9cd0cb255396d888dea
parent69bc8105f13ec1469891dc4125a22355bfe9db3d
broadcom/compiler: use proper type field for atomic operations

We were using the num_components to infer it, but in the end it is
VEC2 for CMPXCHG and 32BIT for anything else.

This doesn't affect any test with the real hw, but fixes an assert
with the last version of the simulator.

Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11039>
src/broadcom/compiler/nir_to_vir.c