summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-03 07:53:57 -0600
committerBrian Paul <brianp@vmware.com>2010-02-10 16:10:45 -0700
commit98b8e251649ad7e7b0aa5a94b0d6e5e4cc6cfc5d (patch)
tree167563266a038cbf10e831d569efe88886ab3e5b
parent20583bd4489669713b81128f8c6ab2fda6a8cc98 (diff)
glsl1: added inf/nan test (disabled for now)
-rw-r--r--src/glean/tglsl1.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/glean/tglsl1.cpp b/src/glean/tglsl1.cpp
index 4ec2509..ffd9280 100644
--- a/src/glean/tglsl1.cpp
+++ b/src/glean/tglsl1.cpp
@@ -3652,6 +3652,23 @@ static const ShaderProgram Programs[] = {
FLAG_VERSION_1_20
},
+#if 0
+ // Check behaviour of inf/nan =========================================
+ {
+ "Divide by zero",
+ NO_VERTEX_SHADER,
+ "uniform vec4 uniform1; \n"
+ "void main() { \n"
+ " float div = uniform1.y / uniform1.w; // div by zero\n"
+ " div = div * uniform1.w; // mul by zero \n"
+ " gl_FragColor = vec4(0.5 + div); \n"
+ "} \n",
+ { 0.5, 0.5, 0.5, 0.5 },
+ DONT_CARE_Z,
+ FLAG_NONE
+ },
+#endif
+
// Illegal link test ==================================================
{
"gl_Position not written check",