nvc0: rewrite the 9097 GRAPH macros