freedreno/ir3: Implement lowering passes for VS and GS