When an argument for a structure constructor or initializer doesn't match the expected type, only Section 4.1.10 “Implicit Conversions” are allowed to try to match that expected type.
Fixes GL44-CTS.shading_language_420pack.initializer_list_negative Andres Gomez (5): glsl/types: disallow implicit conversions before GLSL 1.20 glsl: Refactor implicit conversion into its own helper glsl: struct constructors/initializers only allow implicit conversions glsl: apply_implicit_conversion is static again glsl: fix indentation, comments and line lengths in ast_function.cpp src/compiler/glsl/ast_function.cpp | 999 ++++++++++++++++++++----------------- src/compiler/glsl/ast_to_hir.cpp | 2 +- src/compiler/glsl_types.cpp | 4 + 3 files changed, 543 insertions(+), 462 deletions(-) -- 2.8.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev