Uniforms are per program state. Every shader program has its own uniform state and its own locations.