glsl: keep track of which inputs/outputs are per-patch
mesa/st: copy over more fields