Lib/Kernels/DotVector.cpp
/**
 * on v3d, TMU is used always for writes.
 * on vc4, DMA is used always.
 */
on v3d, TMU is used always for writes.
on vc4, DMA is used always.
on v3d TMU is used always for writes . on vc4 DMA is used always .
void pre_write(Float::Ptr &dst, Float &src, bool add_result) {
  if (add_result) {
    int pre_label = prefetch_label();
    Float::Ptr dst_read = dst;
    Float tmp = 0;
    prefetch(tmp, dst_read, pre_label);
    *dst = tmp + src;
    dst.inc();
  } else {
    *dst = src;
    dst.inc();
  }
}
void pre_write ( Float :: Ptr & dst , Float & src , bool add_result ) { if ( add_result ) { int pre_label = prefetch_label ( ) ; Float :: Ptr dst_read = dst ; Float tmp = 0 ; prefetch ( tmp , dst_read , pre_label ) ; * dst = tmp + src ; dst . inc ( ) ; } else { * dst = src ; dst . inc ( ) ; } }
on v3d, TMU is used always for writes.
on v3d TMU is used always for writes .