spirv/nir: add offset at vtn_variable
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sun, 5 Nov 2017 11:00:19 +0000 (12:00 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 3 Jul 2018 10:37:32 +0000 (12:37 +0200)
commitc6230b93587c6a8874b138e8efb9066e32c17381
tree504e2e2446bc85af6c61ab03d399f6cbac58832f
parent768c275debb2ccf0e3093a893e19345f359b5c58
spirv/nir: add offset at vtn_variable

Also initialize it on var_decoration_cb

This is equivalent to nir_variable.offset, used to store the location
an atomic counter is stored at.

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