|
Implement shader identifier name mapping.
The name mapping happens when an identifier is longer than 32 characters. The name mapping is behind a flag, so it won't happen by default. Also, functions to query the mapped names are added.
The purpose of this CL is for the drivers that can't handle long names. For example, linux NVIDIA driver can't handle 256 character name, whereas WebGL spec requires that.
This CL also fixes the issue that some of the TIntermSymbols' ids are 0s.
ANGLEBUG=144
TEST=test manually with shaders with long identifier names.
Committed: http://code.google.com/p/angleproject/source/detail?r=619
Total comments: 1
Total comments: 11
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+258 lines, -67 lines) |
Patch |
|
M |
include/GLSLANG/ShaderLang.h
|
View
|
1
2
3
4
5
6
|
5 chunks |
+27 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/build_angle.gyp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/common/version.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/Compiler.cpp
|
View
|
1
2
3
4
5
|
3 chunks |
+21 lines, -3 lines |
0 comments
|
Download
|
|
A |
src/compiler/MapLongVariableNames.h
|
View
|
1
2
3
4
5
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/compiler/MapLongVariableNames.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/ParseHelper.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/ParseHelper.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/compiler/ShHandle.h
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/ShaderLang.cpp
|
View
|
1
2
3
4
5
|
5 chunks |
+13 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/compiler/VariableInfo.h
|
View
|
1
2
3
4
5
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/VariableInfo.cpp
|
View
|
1
2
3
4
5
6
|
4 chunks |
+16 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/compiler/glslang.y
|
View
|
1
2
3
4
5
6
7
|
8 chunks |
+24 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/compiler/glslang_tab.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/glslang_tab.cpp
|
View
|
1
2
3
4
5
6
7
|
12 chunks |
+38 lines, -24 lines |
0 comments
|
Download
|
|
M |
src/compiler/intermediate.h
|
View
|
1
2
3
4
5
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
Total messages: 14
|