glsl: Add a method to get precision from a deref instruction