gk110/ir: add support for writing per-patch and shader outputs