1 # Tests loading of a variable entry in a large constant array with an offset.
9 OPTION ARB_position_invariant;
100 {0.5, 1.0, 2.0, 0.0},
101 {1.0, 0.0, 0.8, 0.0},
102 {1.0, 0.0, 0.5, 0.0},
103 {0.8, 1.0, 0.0, 0.0},
104 {0.5, 1.0, 2.0, 0.0},
105 {1.0, 0.0, 0.8, 0.0},
106 {1.0, 0.0, 0.5, 0.0},
107 {0.8, 1.0, 0.0, 0.0},
108 {0.5, 1.0, 2.0, 0.0},
109 {1.0, 0.0, 0.8, 0.0},
110 {1.0, 0.0, 0.5, 0.0},
111 {0.8, 1.0, 0.0, 0.0},
113 {0.5, 1.0, 2.0, 0.0},
114 {1.0, 0.0, 0.8, 0.0},
115 {1.0, 0.0, 0.5, 0.0},
116 {0.8, 1.0, 0.0, 0.0},
117 {0.5, 1.0, 2.0, 0.0},
118 {1.0, 0.0, 0.8, 0.0},
119 {1.0, 0.0, 0.5, 0.0},
120 {0.8, 1.0, 0.0, 0.0},
121 {0.5, 1.0, 2.0, 0.0},
122 {1.0, 0.0, 0.8, 0.0},
123 {1.0, 0.0, 0.5, 0.0},
124 {0.8, 1.0, 0.0, 0.0},
125 {0.5, 1.0, 2.0, 0.0},
126 {1.0, 0.0, 0.8, 0.0},
127 {1.0, 0.0, 0.5, 0.0},
132 ARL A0.x, program.local[0].x;
133 MOV result.color, vals[A0.x+109];
138 parameter local_vp 0 (-1.0, 0.0, 0.0, 0.0)
139 clear color 1.0 0.0 0.0 1.0
142 probe all rgba 0.5 1.0 1.0 0.0
143 parameter local_vp 0 (0.0, 0.0, 0.0, 0.0)
144 clear color 0.0 1.0 0.0 1.0
147 probe all rgba 1.0 0.0 0.8 0.0
148 parameter local_vp 0 (1.0, 0.0, 0.0, 0.0)
149 clear color 0.0 1.0 1.0 1.0
152 probe all rgba 1.0 0.0 0.5 0.0
153 parameter local_vp 0 (2.0, 0.0, 0.0, 0.0)
154 clear color 0.0 0.0 1.0 1.0
157 probe all rgba 0.8 1.0 0.0 0.0