zink: codegen improvements

He Haocheng requested to merge hch12907/mesa:zink-instances into master

This should address #4031 (closed).

Merge request reports