mesa/st/glsl_to_tgsi: Add method to collect some TGSI statistics