diff options
author | Jason Ekstrand <[email protected]> | 2016-02-12 11:58:06 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-03-12 15:48:36 -0800 |
commit | 2ef4754a20be5fc7a6ecc2a8b6b8041637c998c6 (patch) | |
tree | 088f92d325c29e0707e0bf0be4cb08b146399751 /src/compiler/nir/nir_validate.c | |
parent | 41ae553fdae5d0ff687733c45b6151a45759b2fd (diff) |
nir: Add a new "param" variable mode for parameters and return variables
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_validate.c')
-rw-r--r-- | src/compiler/nir/nir_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_validate.c b/src/compiler/nir/nir_validate.c index d1a90485e7e..24094f64141 100644 --- a/src/compiler/nir/nir_validate.c +++ b/src/compiler/nir/nir_validate.c @@ -867,7 +867,7 @@ postvalidate_reg_decl(nir_register *reg, validate_state *state) static void validate_var_decl(nir_variable *var, bool is_global, validate_state *state) { - assert(is_global != (var->data.mode == nir_var_local)); + assert(is_global == nir_variable_is_global(var)); /* * TODO validate some things ir_validate.cpp does (requires more GLSL type |