fusion_alloc: only allocate pyr,pyr_r,pyr_c once