diff options
-rw-r--r-- | tests/all.py | 1 | ||||
-rw-r--r-- | tests/spec/arb_vertex_program/vp-arl-constant-array-huge-offset.shader_test (renamed from tests/shaders/generic/vp-arl-constant-array-huge-offset.vpfp) | 43 |
2 files changed, 30 insertions, 14 deletions
diff --git a/tests/all.py b/tests/all.py index f2cacd845..4c66585fb 100644 --- a/tests/all.py +++ b/tests/all.py @@ -2597,7 +2597,6 @@ with profile.group_manager( add_vpfpgeneric(g, 'vp-arl-constant-array') add_vpfpgeneric(g, 'vp-arl-constant-array-huge') add_vpfpgeneric(g, 'vp-arl-constant-array-huge-varying') - add_vpfpgeneric(g, 'vp-arl-constant-array-huge-offset') add_vpfpgeneric(g, 'vp-arl-constant-array-huge-overwritten') add_vpfpgeneric(g, 'vp-arl-constant-array-huge-relative-offset') add_vpfpgeneric(g, 'vp-arl-constant-array-varying') diff --git a/tests/shaders/generic/vp-arl-constant-array-huge-offset.vpfp b/tests/spec/arb_vertex_program/vp-arl-constant-array-huge-offset.shader_test index f7255e20f..1dc9feef6 100644 --- a/tests/shaders/generic/vp-arl-constant-array-huge-offset.vpfp +++ b/tests/spec/arb_vertex_program/vp-arl-constant-array-huge-offset.shader_test @@ -1,5 +1,11 @@ -; Tests loading of a variable entry in a large constant array with an offset. +# Tests loading of a variable entry in a large constant array with an offset. +[require] +GL >= 1.3 +ARB_vertex_program +ARB_fragment_program + +[vertex program] !!ARBvp1.0 OPTION ARB_position_invariant; PARAM vals[] = { @@ -128,20 +134,31 @@ ARL A0.x, program.local[0].x; MOV result.color, vals[A0.x+1]; END +[fragment program] !!ARBfp1.0 MOV result.color, fragment.color; END -!!test -vertex.local[0] -1.0 0.0 0.0 0.0 -expected 0.5 1.0 1.0 0.0 -!!test -vertex.local[0] 0.0 0.0 0.0 0.0 -expected 1.0 0.0 0.8 0.0 -!!test -vertex.local[0] 1.0 0.0 0.0 0.0 -expected 1.0 0.0 0.5 0.0 -!!test -vertex.local[0] 2.0 0.0 0.0 0.0 -expected 0.8 1.0 0.0 0.0 +[test] +ortho 0 1 0 1 +parameter local_vp 0 (-1.0, 0.0, 0.0, 0.0) +clear color 1.0 0.0 0.0 1.0 +clear +draw rect 0 0 1 1 +probe all rgba 0.5 1.0 1.0 0.0 +parameter local_vp 0 (0.0, 0.0, 0.0, 0.0) +clear color 0.0 1.0 0.0 1.0 +clear +draw rect 0 0 1 1 +probe all rgba 1.0 0.0 0.8 0.0 +parameter local_vp 0 (1.0, 0.0, 0.0, 0.0) +clear color 0.0 1.0 1.0 1.0 +clear +draw rect 0 0 1 1 +probe all rgba 1.0 0.0 0.5 0.0 +parameter local_vp 0 (2.0, 0.0, 0.0, 0.0) +clear color 0.0 0.0 1.0 1.0 +clear +draw rect 0 0 1 1 +probe all rgba 0.8 1.0 0.0 0.0 |