DescriptionUnroll for-loop if sampler array uses loop index as its index.
If inside a for-loop, sampler array index is the loop index, Mac cg compiler will crash. This CL unroll the loop in such situation. The behavior is:
1) If the for-loop index is a float, we reject the shader.
2) If it is an integer, we unroll the for-loop.
Things that should be done in the future are:
1) Add line number macros.
2) Add a limit to unroll iteration count.
anglebug=94
Committed: http://code.google.com/p/angleproject/source/detail?r=606
Patch Set 1 #Patch Set 2 : '' #
MessagesTotal messages: 10
|