diff options
author | Alejandro Piñeiro <[email protected]> | 2018-05-08 08:58:59 +0200 |
---|---|---|
committer | Alejandro Piñeiro <[email protected]> | 2018-08-13 16:28:26 +0200 |
commit | 5332d7582dc82fcf25cd48e9096dc98ef998453e (patch) | |
tree | 3cec0c4108ba8dfc7ba233f83bf9e03a3503b574 /src/compiler/nir/nir.c | |
parent | be6f472b2387f508e55ffbe758da8cbea75717d6 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.c')
-rw-r--r-- | src/compiler/nir/nir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index a849664134f..5e76654ca3d 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -162,6 +162,7 @@ nir_variable_create(nir_shader *shader, nir_variable_mode mode, var->name = ralloc_strdup(var, name); var->type = type; var->data.mode = mode; + var->data.how_declared = nir_var_declared_normally; if ((mode == nir_var_shader_in && shader->info.stage != MESA_SHADER_VERTEX) || |