Enhance readability of error messages for GLSL
authorGreg Fischer <greg@lunarg.com>
Thu, 30 Dec 2021 18:56:57 +0000 (11:56 -0700)
committerGreg Fischer <greg@lunarg.com>
Tue, 1 Feb 2022 19:10:08 +0000 (12:10 -0700)
commitca0d54d51b1fd7bedcde69cede2e1b7141501047
tree0c681e78824297b34a9ee0a39c3e70aa40f4aad2
parentc34bb3b6c55f6ab084124ad964be95a699700d34
Enhance readability of error messages for GLSL

Specifically, make GLSL link error messages more specific and output
only information relevant to the error.

Also change type printing to more closely reflect GLSL syntax. This
is the default for link error messages, but must me enabled with the
new option --enhanced-msgs for compilation error messages.

Also with --enhanced-msgs, only emit one error message per source
line.
56 files changed:
StandAlone/StandAlone.cpp
Test/baseResults/150.tesc.out
Test/baseResults/310.geom.out
Test/baseResults/310.tesc.out
Test/baseResults/310.tese.out
Test/baseResults/320.geom.out
Test/baseResults/320.tesc.out
Test/baseResults/320.tese.out
Test/baseResults/410.geom.out
Test/baseResults/420.tesc.out
Test/baseResults/450.geom.out
Test/baseResults/enhanced.0.frag.out [new file with mode: 0644]
Test/baseResults/enhanced.1.frag.out [new file with mode: 0644]
Test/baseResults/enhanced.2.frag.out [new file with mode: 0644]
Test/baseResults/enhanced.3.link.out [new file with mode: 0644]
Test/baseResults/enhanced.4.link.out [new file with mode: 0644]
Test/baseResults/enhanced.5.link.out [new file with mode: 0644]
Test/baseResults/enhanced.6.link.out [new file with mode: 0644]
Test/baseResults/enhanced.7.link.out [new file with mode: 0644]
Test/baseResults/iomap.crossStage.2.vert.out
Test/baseResults/iomap.crossStage.vert.out
Test/baseResults/iomap.crossStage.vk.vert.out
Test/baseResults/link.multiAnonBlocksInvalid.0.0.vert.out
Test/baseResults/link.multiBlocksInvalid.0.0.vert.out
Test/baseResults/link.multiBlocksValid.1.0.vert.out
Test/baseResults/link.vk.differentPC.0.0.frag.out
Test/baseResults/link.vk.differentPC.1.0.frag.out
Test/baseResults/link.vk.multiBlocksValid.0.0.vert.out
Test/baseResults/link.vk.multiBlocksValid.1.0.geom.out
Test/baseResults/link.vk.pcNamingValid.0.0.vert.out
Test/enhanced.0.frag [new file with mode: 0644]
Test/enhanced.1.frag [new file with mode: 0644]
Test/enhanced.2.frag [new file with mode: 0644]
Test/enhanced.3.frag [new file with mode: 0644]
Test/enhanced.3.vert [new file with mode: 0644]
Test/enhanced.4.frag [new file with mode: 0644]
Test/enhanced.4.vert [new file with mode: 0644]
Test/enhanced.5.frag [new file with mode: 0644]
Test/enhanced.5.vert [new file with mode: 0644]
Test/enhanced.6.frag [new file with mode: 0644]
Test/enhanced.6.vert [new file with mode: 0644]
Test/enhanced.7.frag [new file with mode: 0644]
Test/enhanced.7.vert [new file with mode: 0644]
Test/runtests
glslang/Include/Types.h
glslang/Include/glslang_c_shader_types.h
glslang/Include/intermediate.h
glslang/MachineIndependent/ParseContextBase.cpp
glslang/MachineIndependent/ParseHelper.cpp
glslang/MachineIndependent/ShaderLang.cpp
glslang/MachineIndependent/glslang.m4
glslang/MachineIndependent/glslang.y
glslang/MachineIndependent/glslang_tab.cpp
glslang/MachineIndependent/linkValidate.cpp
glslang/MachineIndependent/localintermediate.h
glslang/Public/ShaderLang.h