From acb90776f4954cc68e647eaefed2c7d5ce59bf72 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 30 Apr 2014 06:06:06 -0700 Subject: 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 Reviewed-by: Kenneth Graunke --- tests/glslparsertest/glsl2/make_tex_lod_tests.sh | 63 ----------------------- tests/glslparsertest/glsl2/make_tex_rect_tests.sh | 50 ------------------ 2 files changed, 113 deletions(-) delete mode 100755 tests/glslparsertest/glsl2/make_tex_lod_tests.sh delete mode 100755 tests/glslparsertest/glsl2/make_tex_rect_tests.sh (limited to 'tests') 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 < $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 < $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 -- cgit v1.2.3