mesa: fix uniforms calculation in glGetProgramiv