# Regression test for r600 # The sb scheduler tries to schedule access to different array elements into # one instruction group when the indices are provided as uniforms # [require] GLSL >= 1.30 [vertex shader passthrough] [fragment shader] uniform uint i; uniform uint j; uniform uint k; void main() { float A[10]; A[2] = 1.0; A[4] = 0.0; A[5] = 0.5; gl_FragColor.rgba = vec4(A[i], A[j], A[k], 1.0); } [test] clear color 1.0 0.0 0.0 1.0 clear uniform uint i 2 uniform uint j 4 uniform uint k 5 draw rect -1 -1 2 2 probe all rgba 1.0 0.0 0.5 1.0