aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/gl_nir_link_uniforms.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-03-05 16:07:12 +1100
committerTimothy Arceri <[email protected]>2019-03-06 13:10:02 +1100
commit54522d05065d6ff1b37005c91e503b4d4f11ed67 (patch)
tree62d28c6db61428cd5b0c9b257005fedd10d35571 /src/compiler/glsl/gl_nir_link_uniforms.c
parente16a27fcf867c8be5ba94470d78f76348f1e8c07 (diff)
nir: rename glsl_type_is_struct() -> glsl_type_is_struct_or_ifc()
Replace done using: find ./src -type f -exec sed -i -- \ 's/glsl_type_is_struct(/glsl_type_is_struct_or_ifc(/g' {} \; Acked-by: Karol Herbst <[email protected]> Acked-by: Jason Ekstrand <[email protected]> Acked-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/glsl/gl_nir_link_uniforms.c')
-rw-r--r--src/compiler/glsl/gl_nir_link_uniforms.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/glsl/gl_nir_link_uniforms.c b/src/compiler/glsl/gl_nir_link_uniforms.c
index 1a491dc2e5d..e4924df0d03 100644
--- a/src/compiler/glsl/gl_nir_link_uniforms.c
+++ b/src/compiler/glsl/gl_nir_link_uniforms.c
@@ -204,7 +204,7 @@ build_type_tree_for_type(const struct glsl_type *type)
entry->array_size = glsl_get_length(type);
entry->children = build_type_tree_for_type(glsl_get_array_element(type));
entry->children->parent = entry;
- } else if (glsl_type_is_struct(type)) {
+ } else if (glsl_type_is_struct_or_ifc(type)) {
struct type_tree_entry *last = NULL;
for (unsigned i = 0; i < glsl_get_length(type); i++) {
@@ -291,10 +291,10 @@ nir_link_uniform(struct gl_context *ctx,
* composite type or an array where each element occupies more than one
* location than we need to recursively process it.
*/
- if (glsl_type_is_struct(type) ||
+ if (glsl_type_is_struct_or_ifc(type) ||
(glsl_type_is_array(type) &&
(glsl_type_is_array(glsl_get_array_element(type)) ||
- glsl_type_is_struct(glsl_get_array_element(type))))) {
+ glsl_type_is_struct_or_ifc(glsl_get_array_element(type))))) {
int location_count = 0;
struct type_tree_entry *old_type = state->current_type;
@@ -303,7 +303,7 @@ nir_link_uniform(struct gl_context *ctx,
for (unsigned i = 0; i < glsl_get_length(type); i++) {
const struct glsl_type *field_type;
- if (glsl_type_is_struct(type))
+ if (glsl_type_is_struct_or_ifc(type))
field_type = glsl_get_struct_field(type, i);
else
field_type = glsl_get_array_element(type);
@@ -318,7 +318,7 @@ nir_link_uniform(struct gl_context *ctx,
location += entries;
location_count += entries;
- if (glsl_type_is_struct(type))
+ if (glsl_type_is_struct_or_ifc(type))
state->current_type = state->current_type->next_sibling;
}