mesa/src/glsl/tests
Ian Romanick 7ac946e546 glsl: Add constuctors for the common cases of glsl_struct_field
Fixes a giant pile of GCC warnings:

builtin_types.cpp:60:1: warning: missing initializer for member 'glsl_struct_field::stream' [-Wmissing-field-initializers]

I had to add a default constructor because a non-default constructor
was added.  Otherwise the only constructor would be the one with
parameters, and all the plases like

    glsl_struct_field foo;

would fail to compile.

I wanted to do this in two patches.  All of the initializers of
glsl_struct_field structures had to be converted to use the
constructor because C++ apparently forces you to do one or the other:

builtin_types.cpp:61:1: error: could not convert '{glsl_type::float_type, "near", -1, 0, 0, 0, GLSL_MATRIX_LAYOUT_INHERITED, 0, -1}' from '<brace-enclosed initializer list>' to 'glsl_struct_field'

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
2015-08-03 11:07:04 -07:00
..
lower_jumps glsl/tests: remove generated tests from the repo 2014-05-28 15:07:07 -07:00
.gitignore glsl: Add unit tests for blob.c 2015-01-16 13:47:40 -08:00
blob_test.c glsl: Add unit tests for blob.c 2015-01-16 13:47:40 -08:00
builtin_variable_test.cpp util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00
compare_ir glsl: Add unit tests for lower_jumps.cpp 2011-07-22 09:45:11 -07:00
copy_constant_to_storage_tests.cpp glsl: replace Elements() with ARRAY_SIZE() 2015-03-02 08:55:30 -07:00
general_ir_test.cpp glsl: Add constuctors for the common cases of glsl_struct_field 2015-08-03 11:07:04 -07:00
invalidate_locations_test.cpp util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00
optimization-test glsl/tests: call create_test_cases.py in optimization-test 2014-05-28 15:06:45 -07:00
sampler_types_test.cpp util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00
set_uniform_initializer_tests.cpp mesa: reference built-in uniforms into gl_uniform_storage 2015-06-04 09:25:00 +03:00
sexps.py glsl: Add unit tests for lower_jumps.cpp 2011-07-22 09:45:11 -07:00
uniform_initializer_utils.cpp glsl/types: add new subroutine type (v3.2) 2015-07-23 17:25:25 +10:00
uniform_initializer_utils.h glsl: Use UniformBooleanTrue value for uniform initializers. 2014-08-18 18:35:48 -07:00
varyings_test.cpp glsl: Add constuctors for the common cases of glsl_struct_field 2015-08-03 11:07:04 -07:00