aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_validate.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/nir/nir_validate.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/nir/nir_validate.c')
-rw-r--r--src/compiler/nir/nir_validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_validate.c b/src/compiler/nir/nir_validate.c
index 17633323dc3..7150649bcef 100644
--- a/src/compiler/nir/nir_validate.c
+++ b/src/compiler/nir/nir_validate.c
@@ -437,7 +437,7 @@ validate_deref_instr(nir_deref_instr *instr, validate_state *state)
switch (instr->deref_type) {
case nir_deref_type_struct:
- validate_assert(state, glsl_type_is_struct(parent->type));
+ validate_assert(state, glsl_type_is_struct_or_ifc(parent->type));
validate_assert(state,
instr->strct.index < glsl_get_length(parent->type));
validate_assert(state, instr->type ==
@@ -1017,7 +1017,7 @@ validate_var_decl(nir_variable *var, bool is_global, validate_state *state)
if (var->num_members > 0) {
const struct glsl_type *without_array = glsl_without_array(var->type);
- validate_assert(state, glsl_type_is_struct(without_array));
+ validate_assert(state, glsl_type_is_struct_or_ifc(without_array));
validate_assert(state, var->num_members == glsl_get_length(without_array));
validate_assert(state, var->members != NULL);
}