Created attachment 129533 [details]
IR Generated by LLVM 3.9.1
Took me a while to find the IR out of all the noise.
You should consider adding a Mesa extension to give human-readable names to
shaders. It would help everyone in debugging A LOT.
I don't mind having
glSetNameMESA( shaderId, "My Filename" );
and internally Mesa keeps a std::map<int, string> or similar.