summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2017-09-07 19:02:48 -0700
committerIan Romanick <[email protected]>2017-09-19 12:02:43 -0500
commit0e88153e998b5ba97dee2b143915ba2509217281 (patch)
tree1d9ac0711ca41cc159faab043f627452cc41878c /src/compiler/glsl/tests
parente5145e28eabbcd9775427114f9469809a74c8fb1 (diff)
glsl: Rename ir_constant::array_elements to ::const_elements
The next patch will unify ::array_elements and ::components, so the name ::array_elements wouldn't be appropriate. A lot of things use the names array_elements and components, so grepping for either is pretty useless. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Alejandro PiƱeiro <[email protected]> Reviewed-by: Elie Tournier <[email protected]>
Diffstat (limited to 'src/compiler/glsl/tests')
-rw-r--r--src/compiler/glsl/tests/uniform_initializer_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/tests/uniform_initializer_utils.cpp b/src/compiler/glsl/tests/uniform_initializer_utils.cpp
index 9a66ebafbcd..c5502b63269 100644
--- a/src/compiler/glsl/tests/uniform_initializer_utils.cpp
+++ b/src/compiler/glsl/tests/uniform_initializer_utils.cpp
@@ -215,11 +215,11 @@ verify_data(gl_constant_value *storage, unsigned storage_array_size,
unsigned int boolean_true)
{
if (val->type->is_array()) {
- const glsl_type *const element_type = val->array_elements[0]->type;
+ const glsl_type *const element_type = val->const_elements[0]->type;
for (unsigned i = 0; i < storage_array_size; i++) {
verify_data(storage + (i * element_type->components()), 0,
- val->array_elements[i], 0, boolean_true);
+ val->const_elements[i], 0, boolean_true);
}
const unsigned components = element_type->components();