mesa/src/compiler/glsl/tests/warnings
Ian Romanick d0028b2e1c glsl/standalone: Enable par-linking
If the user did not request full linking, link the shader with the
built-in functions, inline them, and eliminate them.  Previous to this
you'd see all these calls to "dot" and "max" in the output.  This
prevented a lot of expected optimizations and cluttered the output.
This gives it some chance of being useful.

v2: Rebase on top of Ken's "built-ins now" work.

v3: Don't do_common_optimizations if par-linking fails.  Update expected
output of warnings tests to prevent 'make check' regressions.

v4: Optimize harder.  Most important, do function inlining.  Otherwise
it's quite impractical for one function in a file to call another
function in the same file.

v5: Add some code simplifications and an assertion suggested by Iago.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
2016-11-10 14:30:49 -08:00
..
.gitignore
000-basic-test.vert
000-basic-test.vert.expected
001-use-undefined-then-define.vert
001-use-undefined-then-define.vert.expected
002-loop.vert
002-loop.vert.expected
003-less.vert
003-less.vert.expected
004-greater.vert
004-greater.vert.expected
005-lequal.vert
005-lequal.vert.expected
006-gequal.vert
006-gequal.vert.expected
007-test-mod.vert
007-test-mod.vert.expected
008-mulassign.vert
008-mulassign.vert.expected
009-div-assign.vert
009-div-assign.vert.expected
010-add-assign.vert
010-add-assign.vert.expected
011-sub-assign.vert
011-sub-assign.vert.expected
012-modassign.vert
012-modassign.vert.expected
013-lsassign.vert
013-lsassign.vert.expected
014-rsassign.vert
014-rsassign.vert.expected
015-andassign.vert
015-andassign.vert.expected
016-orassign.vert
016-orassign.vert.expected
017-xorassign.vert
017-xorassign.vert.expected
018-bitand.vert
018-bitand.vert.expected
019-array.vert
019-array.vert.expected
020-array-length.vert
020-array-length.vert.expected
021-lshift.vert
021-lshift.vert.expected
022-rshift.vert
022-rshift.vert.expected
023-switch.vert
023-switch.vert.expected
024-shaderout.vert
024-shaderout.vert.expected
025-function-parameters.vert
025-function-parameters.vert.expected
026-out-function-parameter-shaderout.vert
026-out-function-parameter-shaderout.vert.expected glsl/standalone: Enable par-linking 2016-11-10 14:30:49 -08:00
027-inout-function-parameter-shaderout.vert
027-inout-function-parameter-shaderout.vert.expected glsl/standalone: Enable par-linking 2016-11-10 14:30:49 -08:00
028-conditional.vert
028-conditional.vert.expected
029-fieldselection.vert
029-fieldselection.vert.expected
030-array-as-function-parameter.vert
030-array-as-function-parameter.vert.expected glsl/standalone: Enable par-linking 2016-11-10 14:30:49 -08:00