|
Emulate certain buil-in functions to work around driver bugs.
This is implemented by adding a new compile option SH_EMULATE_BUILT_IN_FUNCTIONS. The emulated functions are names as webgl_originalName_emu so there will never be naming conflicts.
At the moment only three functions are emulated: normalize, abs, sign. Also, the compile option will emulate all three. However, the mechanism to emulate only a selected subset is also imeplemented. It can be turned on easily.
ANGLEBUG=196
TEST=with this option, the failed test with abs.frag passes.
Committed: http://code.google.com/p/angleproject/source/detail?r=738
Total comments: 13
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+345 lines, -49 lines) |
Patch |
|
M |
include/GLSLANG/ShaderLang.h
|
View
|
1
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
samples/translator/translator.cpp
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
src/build_angle.gyp
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/common/version.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
src/compiler/BuiltInFunctionEmulator.h
|
View
|
1
|
1 chunk |
+86 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/compiler/BuiltInFunctionEmulator.cpp
|
View
|
|
1 chunk |
+161 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/Compiler.cpp
|
View
|
1
|
3 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/OutputGLSLBase.cpp
|
View
|
1
|
3 chunks |
+52 lines, -45 lines |
0 comments
|
Download
|
|
M |
src/compiler/ShHandle.h
|
View
|
1
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/TranslatorESSL.cpp
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/TranslatorGLSL.cpp
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/intermediate.h
|
View
|
1
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/translator_common.vcproj
|
View
|
1
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
Total messages: 6
|