[Mesa-dev] [PATCH 0/2] struct constructors/initializers only allow implicit conversions

Andres Gomez agomez at igalia.com
Sun Jul 31 15:43:01 UTC 2016


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 (2):
  glsl/types: disallow implicit conversions before GLSL 1.20
  glsl: struct constructors/initializers only allow implicit conversions

 src/compiler/glsl/ast_function.cpp | 62 ++++++++++++++++++++++++++++----------
 src/compiler/glsl_types.cpp        |  4 +++
 2 files changed, 50 insertions(+), 16 deletions(-)

-- 
2.8.1



More information about the mesa-dev mailing list