diff options
author | Timothy Arceri <[email protected]> | 2015-04-30 20:45:54 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2015-05-22 08:35:45 +1000 |
commit | d67515b7be1ebd9482970ac1867ee4e9bbbf96d5 (patch) | |
tree | 6c89e134e067cbf9a56b7ef92b5734fbb4e3385c /src/glsl/link_atomics.cpp | |
parent | 51ccdb63467b1e848db025670f126eccb051f8f2 (diff) |
glsl: remove element_type() helper
We now have is_array() and without_array() that make the
code much clearer and remove the need for this.
For all remaining calls to this we already knew that
the type was an array so returning a null wasn't adding any value.
v2: use without_array() in _mesa_ast_array_index_to_hir() and don't use
without_array() in lower_clip_distance_visitor() as we want to make sure the
array is 2D.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/link_atomics.cpp')
-rw-r--r-- | src/glsl/link_atomics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/link_atomics.cpp b/src/glsl/link_atomics.cpp index 603873a5d4f..100d03c4e8f 100644 --- a/src/glsl/link_atomics.cpp +++ b/src/glsl/link_atomics.cpp @@ -207,7 +207,7 @@ link_assign_atomic_counter_resources(struct gl_context *ctx, storage->atomic_buffer_index = i; storage->offset = var->data.atomic.offset; storage->array_stride = (var->type->is_array() ? - var->type->element_type()->atomic_size() : 0); + var->type->without_array()->atomic_size() : 0); } /* Assign stage-specific fields. */ |