https://bugs.freedesktop.org/show_bug.cgi?id=66067
--- Comment #36 from Roland Scheidegger sroland@vmware.com --- (In reply to Roland Scheidegger from comment #35) Actually don't you get some comment in the ARB_fp_program it was compiled from cg? You could just take that as a hint you're going to see that bug and invoke the additional checks only then (as I don't think you'd ever see that bug outside of cg generated programs).