primitives: fix build error in refactor of chroma p2s primitive.