diff options
author | Tom Gall <tom.gall@linaro.org> | 2013-01-07 14:42:48 -0600 |
---|---|---|
committer | Tom Gall <tom.gall@linaro.org> | 2013-01-23 14:08:50 -0600 |
commit | 6abfe3c2c3ba0208f3c3796bc68d21de5a9e04aa (patch) | |
tree | 2058c0f463b2a43687f2c934456480142b8561bd | |
parent | 7c0167c902a2cec6ba0f30b2561d2fdf771403ed (diff) | |
download | piglit-6abfe3c2c3ba0208f3c3796bc68d21de5a9e04aa.tar.gz |
gles2: glslparser tests ported to glsl es 1.00 from glsl 1.10
-rw-r--r-- | tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag | 17 | ||||
-rw-r--r-- | tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert | 18 |
2 files changed, 35 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag new file mode 100644 index 00000000..e72eb045 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag @@ -0,0 +1,17 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.20 + * glsles_version: 1.00 + * check_link: true + * [end config] + * + * This test verifies that the fragment shader special variable + * gl_ClipDistance (defined in GLSL 1.30) is not available when the + * GLSL version is 1.20. + */ + +varying float gl_ClipDistance[2]; + +void main() +{ +} diff --git a/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert new file mode 100644 index 00000000..108f9122 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert @@ -0,0 +1,18 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.20 + * glsles_version: 1.00 + * check_link: true + * [end config] + * + * This test verifies that the vertex shader special variable + * gl_ClipDistance (defined in GLSL 1.30) is not available when the + * GLSL version is 1.20. + */ + +varying float gl_ClipDistance[2]; + +void main() +{ + gl_Position = vec4(0.0); +} |