freedreno/ir3: add generic get_barycentric()