nir: add how_declared to nir_variable.data
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 8 May 2018 06:58:59 +0000 (08:58 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 13 Aug 2018 14:28:26 +0000 (16:28 +0200)
commit5332d7582dc82fcf25cd48e9096dc98ef998453e
tree3cec0c4108ba8dfc7ba233f83bf9e03a3503b574
parentbe6f472b2387f508e55ffbe758da8cbea75717d6
nir: add how_declared to nir_variable.data

Equivalent to the already existing how_declared at GLSL IR. The only
difference is that we are not adding all the declaration_type
available on GLSL, only the one that we will use on the short term. We
would add more mode if needed on the future.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_wpos_ytransform.c