st/glsl: Perform some var optimizations