Commit bb3e527c authored by Kenneth Graunke's avatar Kenneth Graunke Committed by Dylan Baker
Browse files

gen_equal_tests: Update generator to match in-tree tests.

Ian removed the GL >= 2.0 requirement in commit
38017752.

Matt removed the #version 120 lines in commit
67174fbc.

Matt dropped ortho/clear in commit:
2e561445



Now running gen_equal_tests.py produces equivalent results to the
committed tests.
Signed-off-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
parent 8178cafd
......@@ -10,14 +10,12 @@ def emit_test(f, func, input1, input2, expected):
test = """
[require]
GL >= 2.0
GLSL >= 1.20
[vertex shader file]
glsl-mvp.vert
[fragment shader]
#version 120
void main()
{
const %s res = %s(%s,
......@@ -27,11 +25,8 @@ void main()
}
[test]
clear color 0.0 0.0 0.0 0.0
clear
ortho
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
""" % (s[0], func, input1, spaces, input2, expected)
f.write(test)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment