gallium/util: use enum pipe_prim_type in u_prim.h functions