mesa: move num_instances and base_instance out of _mesa_prim