spirv/nir: initialize offset on the nir var at vtn_create_variable
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sun, 5 Nov 2017 15:19:43 +0000 (16:19 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 3 Jul 2018 10:41:46 +0000 (12:41 +0200)
commitc3eb0ba0ffa164009174e647c2f31ebc1c8fef74
treec55e00ee1bafb79dd616fd6b2c6cb44e516cb9b4
parent4110bc4c17990e5b10da6c3dcf8ad6fbd5b99656
spirv/nir: initialize offset on the nir var at vtn_create_variable

This is convenient when dealing with atomic counter uniforms. The
alternative would be doing that at vtn_handle_atomics.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/spirv/vtn_variables.c