From de32c8378cd2ba8d6a16351ccac1ae42fee60b77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Mon, 15 May 2017 08:32:21 +0200 Subject: [PATCH] glsl: simplify validate_intrastage_arrays Struct types are now equal when they are structurally equal. Reviewed-by: Timothy Arceri --- src/compiler/glsl/linker.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 20465db..adfa3b7 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -850,14 +850,6 @@ validate_intrastage_arrays(struct gl_shader_program *prog, } return true; } - } else { - /* The arrays of structs could have different glsl_type pointers but - * they are actually the same type. Use record_compare() to check that. - */ - if (existing->type->fields.array->is_record() && - var->type->fields.array->is_record() && - existing->type->fields.array->record_compare(var->type->fields.array)) - return true; } } return false; -- 2.7.4