glsl: Add wrapper function that calls ir_dereference::constant_referenced