diff options
author | Jason Ekstrand <[email protected]> | 2014-11-19 12:53:08 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:19:02 -0800 |
commit | b5143edaeeb6f57558f5bb6fbd7f7cc39ad7489d (patch) | |
tree | 8362d1cbab931746f1cbe2095bceae6d74f0da5a /src/glsl/nir/nir_lower_atomics.c | |
parent | 8219ff1796ab18d19fe9cf3cf93f463a984e2c80 (diff) |
nir: Make array deref direct vs. indirect an enum
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_lower_atomics.c')
-rw-r--r-- | src/glsl/nir/nir_lower_atomics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_lower_atomics.c b/src/glsl/nir/nir_lower_atomics.c index c2387cd8109..23d5de0c0ac 100644 --- a/src/glsl/nir/nir_lower_atomics.c +++ b/src/glsl/nir/nir_lower_atomics.c @@ -86,7 +86,7 @@ lower_instr(nir_intrinsic_instr *instr, nir_function_impl *impl) offset_const->value.u[0] += deref_array->base_offset; - if (deref_array->has_indirect) { + if (deref_array->deref_array_type == nir_deref_array_type_indirect) { nir_load_const_instr *atomic_counter_size = nir_load_const_instr_create(mem_ctx); atomic_counter_size->num_components = 1; |