summaryrefslogtreecommitdiff
path: root/tests/glean
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-05-19 16:36:38 -0700
committerMatt Turner <mattst88@gmail.com>2014-05-22 09:26:19 -0700
commitd6cd2d1656e9c0e9d4804771c8c156160a99df17 (patch)
tree82f5f36cdfd0b282be61d58e945c7d6afc66cbca /tests/glean
parent68232168beae23e90b7addb1ab409e3fcdbea653 (diff)
glean/glsl1: Delete duplicated function tests.
Diffstat (limited to 'tests/glean')
-rw-r--r--tests/glean/tglsl1.cpp155
1 files changed, 0 insertions, 155 deletions
diff --git a/tests/glean/tglsl1.cpp b/tests/glean/tglsl1.cpp
index 9a5a5147f..b6b0a47c6 100644
--- a/tests/glean/tglsl1.cpp
+++ b/tests/glean/tglsl1.cpp
@@ -1380,140 +1380,6 @@ static const ShaderProgram Programs[] = {
// Function calls ====================================================
{
- "simple function call",
- NO_VERTEX_SHADER,
- "vec4 avg(const in vec4 a, const in vec4 b) { \n"
- " return (a + b) * 0.5; \n"
- "} \n"
- "\n"
- "void main() { \n"
- " vec4 a = vec4(1.0, 0.0, 0.5, 0.0); \n"
- " vec4 b = vec4(0.0, 0.8, 0.5, 0.0); \n"
- " gl_FragColor = avg(a, b); \n"
- "} \n",
- { 0.5, 0.4, 0.5, 0.0 },
- DONT_CARE_Z,
- FLAG_NONE
- },
-
- {
- "function call with inout params",
- NO_VERTEX_SHADER,
- "void swap(inout float x, inout float y) { \n"
- " float t = x; \n"
- " x = y; \n"
- " y = t; \n"
- "} \n"
- "\n"
- "void main() { \n"
- " float a = 0.5, b = 0.25; \n"
- " swap(a, b); \n"
- " gl_FragColor.x = a; \n"
- " gl_FragColor.y = b; \n"
- " gl_FragColor.z = 0.0; \n"
- " gl_FragColor.w = 0.0; \n"
- "} \n",
- { 0.25, 0.5, 0.0, 0.0 },
- DONT_CARE_Z,
- FLAG_NONE
- },
-
- {
- "function call with in, out params",
- NO_VERTEX_SHADER,
- "void Half(in float x, out float y) { \n"
- " y = 0.5 * x; \n"
- "} \n"
- "\n"
- "void main() { \n"
- " float a = 0.5, b = 0.1; \n"
- " Half(a, b); \n"
- " gl_FragColor = vec4(b); \n"
- "} \n",
- { 0.25, 0.25, 0.25, 0.25 },
- DONT_CARE_Z,
- FLAG_NONE
- },
-
- {
- "function with early return (1)",
- NO_VERTEX_SHADER,
- "float minimum(in float x, in float y) { \n"
- " if (x < y) \n"
- " return x; \n"
- " return y; \n"
- "} \n"
- "\n"
- "void main() { \n"
- " float a = 0.5; \n"
- " float z = minimum(a, 0.25); \n"
- " gl_FragColor = vec4(z); \n"
- "} \n",
- { 0.25, 0.25, 0.25, 0.25 },
- DONT_CARE_Z,
- FLAG_NONE
- },
-
- {
- "function with early return (2)", // reverse case of above
- NO_VERTEX_SHADER,
- "float minimum(in float x, in float y) { \n"
- " if (x < y) \n"
- " return x; \n"
- " return y; \n"
- "} \n"
- "\n"
- "void main() { \n"
- " float a = 0.25; \n"
- " float z = minimum(a, 0.5); \n"
- " gl_FragColor = vec4(z); \n"
- "} \n",
- { 0.25, 0.25, 0.25, 0.25 },
- DONT_CARE_Z,
- FLAG_NONE
- },
-
- {
- "function with early return (3)",
- NO_VERTEX_SHADER,
- "float val = 0.5; \n"
- "void sub(in float x) { \n"
- " if (x > 0.0) \n"
- " return; \n"
- " val = 1.0; \n"
- "} \n"
- "\n"
- "void main() { \n"
- " sub(1.0); \n"
- " gl_FragColor = vec4(val); \n"
- "} \n",
- { 0.5, 0.5, 0.5, 0.5 },
- DONT_CARE_Z,
- FLAG_NONE
- },
-
- {
- "function with early return (4)",
- NO_VERTEX_SHADER,
- "float val = 0.5; \n"
- "void sub(in float x) { \n"
- " if (x >= 0.3) \n"
- " if (x >= 0.4) \n"
- " return; \n"
- " val = 1.0; \n"
- "} \n"
- "\n"
- "void main() { \n"
- " sub(gl_TexCoord[0].s); \n"
- " gl_FragColor = vec4(val); \n"
- "} \n",
- { 0.5, 0.5, 0.5, 0.5 },
- DONT_CARE_Z,
- FLAG_NONE
- },
-
-
- {
"nested function calls (1)",
NO_VERTEX_SHADER,
"float Half(const in float x) { \n"
@@ -1574,27 +1440,6 @@ static const ShaderProgram Programs[] = {
},
{
- "function prototype",
- NO_VERTEX_SHADER,
- "float Half(const in float x); \n"
- "\n"
- "void main() { \n"
- " float a = 0.5; \n"
- " float b = Half(a); \n"
- " gl_FragColor = vec4(b); \n"
- "} \n"
- "\n"
- "float Half(const in float x) { \n"
- " return 0.5 * x; \n"
- "} \n"
- "\n",
- { 0.25, 0.25, 0.25, 0.25 },
- DONT_CARE_Z,
- FLAG_NONE
- },
-
-
- {
"TPPStreamCompiler::assignOperands",
NO_VERTEX_SHADER,
"struct S { \n"