1 # Tests loading of a constant entry in a large constant array after loading
2 # its index as an offset from an address register. Catches a bug in the 965
11 OPTION ARB_position_invariant;
100 {1.0, 0.0, 0.5, 0.0},
101 {0.8, 1.0, 0.0, 0.0},
102 {0.5, 1.0, 2.0, 0.0},
103 {1.0, 0.0, 0.8, 0.0},
104 {1.0, 0.0, 0.5, 0.0},
105 {0.8, 1.0, 0.0, 0.0},
106 {0.5, 1.0, 2.0, 0.0},
107 {1.0, 0.0, 0.8, 0.0},
108 {1.0, 0.0, 0.5, 0.0},
109 {0.8, 1.0, 0.0, 0.0},
110 {0.5, 1.0, 2.0, 0.0},
111 {1.0, 0.0, 0.8, 0.0},
112 {1.0, 0.0, 0.5, 0.0},
113 {0.8, 1.0, 0.0, 0.0},
115 {0.5, 1.0, 2.0, 0.0},
116 {1.0, 0.0, 0.8, 0.0},
117 {1.0, 0.0, 0.5, 0.0},
118 {0.8, 1.0, 0.0, 0.0},
119 {0.5, 1.0, 2.0, 0.0},
120 {1.0, 0.0, 0.8, 0.0},
121 {1.0, 0.0, 0.5, 0.0},
122 {0.8, 1.0, 0.0, 0.0},
123 {0.5, 1.0, 2.0, 0.0},
124 {1.0, 0.0, 0.8, 0.0},
125 {1.0, 0.0, 0.5, 0.0},
126 {0.8, 1.0, 0.0, 0.0},
127 {0.5, 1.0, 2.0, 0.0},
128 {1.0, 0.0, 0.8, 0.0},
129 {1.0, 0.0, 0.5, 0.0},
134 ARL A0.x, program.local[0].x;
135 # loading index 1 of the array
136 MOV result.color, vals[A0.x+0];
137 MOV result.color, vals[0];
142 parameter local_vp 0 (1.0, 0.0, 0.0, 0.0)
143 clear color 1.0 0.0 0.0 1.0
146 probe all rgba 0.5 1.0 1.0 0.0