ir_to_mesa: Move the STATE_VAR elements of a builtin uniform to a temp (v2).