glsl: pass stage into mark function