summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2014-04-30 06:06:06 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2014-05-14 10:30:48 -0700
commitacb90776f4954cc68e647eaefed2c7d5ce59bf72 (patch)
treeea54336e2f1004b54d60010226b0da79fc311cba /tests
parentfd4247e5d2513da9a7c25b4f6099e3afe64f2428 (diff)
Remove old versions of make_tex_lod_tests.sh
These are old partial versions of another test generator that is replaced later in this series Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/glslparsertest/glsl2/make_tex_lod_tests.sh63
-rwxr-xr-xtests/glslparsertest/glsl2/make_tex_rect_tests.sh50
2 files changed, 0 insertions, 113 deletions
diff --git a/tests/glslparsertest/glsl2/make_tex_lod_tests.sh b/tests/glslparsertest/glsl2/make_tex_lod_tests.sh
deleted file mode 100755
index 1324cb111..000000000
--- a/tests/glslparsertest/glsl2/make_tex_lod_tests.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/bash
-
-function gen_frag_test
-{
- case $1 in
- texture1D) coord_type="float" ;;
- texture1DProj) coord_type="vec2" ;;
- texture2D) coord_type="vec2" ;;
- texture2DProj) coord_type="vec3" ;;
- texture3D) coord_type="vec3" ;;
- texture3DProj) coord_type="vec4" ;;
- textureCube) coord_type="vec3" ;;
- shadow1D) coord_type="vec3" ;;
- shadow1DProj) coord_type="vec4" ;;
- shadow2D) coord_type="vec3" ;;
- shadow2DProj) coord_type="vec4" ;;
- esac
-
- # This expression does 3 steps:
- # 1. Moves the word 'texture' or 'shadow' to the end
- # 2. Deletes the word 'texture'
- # 3. Deletes the word 'Proj'
- # 4. Replaces 'shadow' with 'Shadow'
- dim=$(echo $1 | sed 's/^\(shadow\|texture\)\(.*\)/\2\1/;s/texture//;s/Proj//;s/shadow/Shadow/')
- mode=$1
-
- if test x$2 != x ; then
- coord_type=$2
- fi
-
- cat <<EOF
-/* FAIL
- * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the
- * texture lookup functions are not available in fragment shaders.
- */
-uniform sampler${dim} s;
-varying ${coord_type} coord;
-varying float lod;
-
-void main()
-{
- gl_FragColor = ${mode}Lod(s, coord, lod);
-}
-EOF
-}
-
-
-i=1
-for d in texture1D texture1DProj shadow1D shadow1DProj \
- texture2D texture2DProj shadow2D shadow2DProj \
- texture3D texture3DProj textureCube
-do
- name=$(printf "tex_lod-%02d.frag" $i)
- gen_frag_test $d > $name
- i=$((i + 1))
-
-
- if echo $d | egrep -q 'texture[12]DProj' ; then
- name=$(printf "tex_lod-%02d.frag" $i)
- gen_frag_test $d vec4 > $name
- i=$((i + 1))
- fi
-done
diff --git a/tests/glslparsertest/glsl2/make_tex_rect_tests.sh b/tests/glslparsertest/glsl2/make_tex_rect_tests.sh
deleted file mode 100755
index f9dccda30..000000000
--- a/tests/glslparsertest/glsl2/make_tex_rect_tests.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/bash
-
-function gen_frag_test
-{
- case $1 in
- texture2DRect) coord_type="vec2" ;;
- texture2DRectProj) coord_type="vec3" ;;
- shadow2DRect) coord_type="vec3" ;;
- shadow2DRectProj) coord_type="vec4" ;;
- esac
-
- # This expression does 3 steps:
- # 1. Moves the word 'texture' or 'shadow' to the end
- # 2. Deletes the word 'texture'
- # 3. Deletes the word 'Proj'
- # 4. Replaces 'shadow' with 'Shadow'
- dim=$(echo $1 | sed 's/^\(shadow\|texture\)\(.*\)/\2\1/;s/texture//;s/Proj//;s/shadow/Shadow/')
- mode=$1
-
- if test x$2 != x ; then
- coord_type=$2
- fi
-
- cat <<EOF
-/* PASS */
-uniform sampler${dim} s;
-varying ${coord_type} coord;
-
-void main()
-{
- gl_FragColor = ${mode}(s, coord);
-}
-EOF
-}
-
-
-i=4
-for d in texture2DRect texture2DRectProj \
- shadow2DRect shadow2DRectProj
-do
- name=$(printf "tex_rect-%02d.frag" $i)
- gen_frag_test $d > $name
- i=$((i + 1))
-
- if test $d = 'texture2DRectProj'; then
- name=$(printf "tex_rect-%02d.frag" $i)
- gen_frag_test $d vec4 > $name
- i=$((i + 1))
- fi
-done