What is the failure mode? A bunch of changes recently occurred in the GLSL compiler (especially in the linker) for UBO matrices. What version of Mesa are you on? Can you try a build of master?