diff options
author | Vinson Lee <vlee@vmware.com> | 2010-03-29 14:38:07 -0700 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-03-29 14:38:07 -0700 |
commit | 7c7892b5e05295c09ed361396393dbcd357f34f7 (patch) | |
tree | 8298cb53f6afcd7e15f31296c0578ce2e3729204 | |
parent | ab35c557559d20a8c1bf196e391b65b18375d919 (diff) |
glsl1: Add Mac OS X TPPStreamCompiler::assignOperands crash test case.
This test case causes the Apple GLSL compiler on Mac OS X 10.6.3 to
crash in the function TPPStreamCompiler::assignOperands.
The crash does not occur if the const qualifier is removed.
-rw-r--r-- | src/glean/tglsl1.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/glean/tglsl1.cpp b/src/glean/tglsl1.cpp index 9999bd6..0ef5a6a 100644 --- a/src/glean/tglsl1.cpp +++ b/src/glean/tglsl1.cpp @@ -2545,6 +2545,29 @@ static const ShaderProgram Programs[] = { FLAG_NONE }, + { + "TPPStreamCompiler::assignOperands", + NO_VERTEX_SHADER, + "struct S { \n" + " float f; \n" + "}; \n" + "\n" + "void F(S s) {} \n" + "\n" + "const S s = S(0.0); \n" + "\n" + "void F() { \n" + " F(s); \n" + "} \n" + "\n" + "void main() { \n" + " gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); \n" + "} \n", + { 0.0, 0.0, 0.0, 0.0 }, + DONT_CARE_Z, + FLAG_NONE + }, + // Matrix tests ====================================================== { "matrix column check (1)", |