mesa/src/compiler/glsl/tests
Iago Toral Quiroga 537dce06ec glsl: add matrix layout information to interface block types
So far we have been checking that interface block definitions had matching
matrix layouts by comparing the definitions of their fields, however, this
does not cover the case where the interface blocks are defined with
mismatching matrix layouts but don't define any field with a matrix type.
In this case Mesa will not fail to link because none of the fields will
inherit the mismatching layout qualifier.

This patch fixes the problem in the same way we fixed it for packing layout
information: we add the the layout information to the interface type and then
we check it matches during the uniform block linking process.

v2: Fix unit tests so they pass the new parameter to
    glsl_type::get_interface_instance()

Fixes:
dEQP-GLES31.functional.shaders.linkage.uniform.block.layout_qualifier_mismatch_3

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98245
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (v1)
2016-10-24 15:49:53 +02:00
..
lower_jumps glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
warnings glsl: Add .gitignore for make check warnings test 2016-09-06 08:32:19 -07:00
.gitignore glsl: Add initial functions to implement an on-disk cache 2016-09-28 09:16:31 +10:00
blob_test.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
builtin_variable_test.cpp glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
cache_test.c glsl: Let cache_test build when the shader cache is not enabled 2016-10-07 11:19:37 -07:00
compare_ir glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
copy_constant_to_storage_tests.cpp glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
general_ir_test.cpp glsl: add matrix layout information to interface block types 2016-10-24 15:49:53 +02:00
invalidate_locations_test.cpp glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
optimization-test glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
sampler_types_test.cpp glsl/types: Rename sampler_type to sampled_type 2016-02-13 17:22:36 -08:00
set_uniform_initializer_tests.cpp mesa/glsl: Move string_to_uint_map into the util folder 2016-09-12 10:48:35 +10:00
sexps.py glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
uniform_initializer_utils.cpp glsl/types: Add support for function types 2016-02-13 17:22:36 -08:00
uniform_initializer_utils.h glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
varyings_test.cpp glsl: add matrix layout information to interface block types 2016-10-24 15:49:53 +02:00
warnings-test glsl: add warning-test 2016-05-26 09:19:17 +02:00