[2/2] glsl-1.20: Don't use ortho in outerProduct tests.

Submitted by Jordan Justen on June 12, 2018, 6:22 a.m.

Details

Message ID 20180612062236.4089-2-jordan.l.justen@intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Jordan Justen June 12, 2018, 6:22 a.m.
From: Matt Turner <mattst88@gmail.com>

Ref: https://lists.freedesktop.org/archives/piglit/2013-November/008299.html
[jordan.l.justen@intel.com: convert from shell script to mako]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: Kenneth Graunke <kenneth@whitecape.org>
---
 .../gen_outerproduct_tests/template.shader_test.mako  | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

Patch hide | download patch | download mbox

diff --git a/generated_tests/templates/gen_outerproduct_tests/template.shader_test.mako b/generated_tests/templates/gen_outerproduct_tests/template.shader_test.mako
index 8c2d6c9af..971512937 100644
--- a/generated_tests/templates/gen_outerproduct_tests/template.shader_test.mako
+++ b/generated_tests/templates/gen_outerproduct_tests/template.shader_test.mako
@@ -108,20 +108,17 @@  void main() {
 %endif
 
 [test]
-clear color 0.5 0.5 0.5 0.0
-clear
-ortho
 
 %if type == 'uniform':
 % for x in range(1, 5):
 uniform ${params.vec_type}${params.columns} c ${" ".join(str(i + x) for i in range(1, params.columns + 1))}
 uniform ${params.vec_type}${params.rows} r ${" ".join(str(i + x + params.columns) for i in range(1, params.rows + 1))}
 uniform mat${params.rows}x${params.columns} expected ${" ".join(str((i + x + params.columns) * (j + x)) for i in range(1, params.rows + 1) for j in range(1, params.columns + 1))}
-draw rect ${20 * x - 10} 10 10 10
-probe rgb ${20 * x - 5} 15 0.0 1.0 0.0
+draw rect -1 -1 2 2
+probe all rgb 0.0 1.0 0.0
 
 % endfor
 %elif type == 'const':
-draw rect 10 10 10 10
-probe rgb 15 15 0.0 1.0 0.0
+draw rect -1 -1 2 2
+probe all rgb 0.0 1.0 0.0
 %endif