Created attachment 37980 [details]
shader from RenderFeatTest32
Shaders fail to work in a couple of applications: "Variable indexing of variable arrays in the FS unsupported"
Among them are the game Coldest:
And the render test for the upcoming game Amnesia:
Not sure if this is a problem with glsl2, or a limitation in i965.
I'm using git master c54dea66fd86f6000e334c703ea4890179c39c81
One of the failing shaders from RenderFeatTest32 is attached.
This will probably go away when idr lands loop unrolling, which is the reason it could have worked on 7.8. But if that doesn't happen in time, I should get this fixed with the glsl2-965 branch.
Could you retest with my glsl2-loops branch? It's in my personal Mesa repository at:
For what it's worth, I don't see anything in the attached test case that should lead to variable indexing of anything. The loop counter is only used to control the loop. It is not referenced in the loop body *at all*.
These errors are gone now with loop unrolling merged.