summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/all.py1
-rw-r--r--tests/spec/arb_vertex_program/vp-arl-constant-array-huge-overwritten.shader_test (renamed from tests/shaders/generic/vp-arl-constant-array-huge-overwritten.vpfp)25
2 files changed, 18 insertions, 8 deletions
diff --git a/tests/all.py b/tests/all.py
index 4c66585fb..daccd349f 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-overwritten')
add_vpfpgeneric(g, 'vp-arl-constant-array-huge-relative-offset')
add_vpfpgeneric(g, 'vp-arl-constant-array-varying')
add_vpfpgeneric(g, 'vp-arl-env-array')
diff --git a/tests/shaders/generic/vp-arl-constant-array-huge-overwritten.vpfp b/tests/spec/arb_vertex_program/vp-arl-constant-array-huge-overwritten.shader_test
index caa38e90f..24f0a6016 100644
--- a/tests/shaders/generic/vp-arl-constant-array-huge-overwritten.vpfp
+++ b/tests/spec/arb_vertex_program/vp-arl-constant-array-huge-overwritten.shader_test
@@ -1,7 +1,13 @@
-; Tests loading of a constant entry in a large constant array after loading
-; its index as an offset from an address register. Catches a bug in the 965
-; driver.
+# Tests loading of a constant entry in a large constant array after loading
+# its index as an offset from an address register. Catches a bug in the 965
+# driver.
+[require]
+GL >= 1.3
+ARB_vertex_program
+ARB_fragment_program
+
+[vertex program]
!!ARBvp1.0
OPTION ARB_position_invariant;
PARAM vals[] = {
@@ -127,16 +133,21 @@ PARAM vals[] = {
ADDRESS A0;
ARL A0.x, program.local[0].x;
-; loading index 1 of the array
+# loading index 1 of the array
MOV result.color, vals[A0.x+0];
MOV result.color, vals[0];
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]
+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