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

Jordan Justen jordan.l.justen at intel.com
Tue Jun 12 06:22:36 UTC 2018


From: Matt Turner <mattst88 at gmail.com>

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

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
-- 
2.17.0



More information about the Piglit mailing list