Lib/v3d/instr/Snippets.cpp
/**
 * An instruction may be passed in to make use of a waiting slot.
 */
An instruction may be passed in to make use of a waiting slot.
An instruction may be passed in to make use of a waiting slot .
Instructions enable_tmu_read(Instr const *last_slot) {
  const char *text = 
    "This single thread switch and two instructions just before the loop are\n"
    "really important for TMU read to achieve a better performance.\n"
    "This also enables TMU read requests without the thread switch signal, and\n"
    "the eight-depth TMU read request queue.";
  Instructions ret;
  ret << nop().thrsw().header(text)
      << nop();
  if (last_slot != nullptr) {
    ret << *last_slot;
  } else {
    ret << nop();
  }
  return ret;
}
Instructions enable_tmu_read ( Instr const * last_slot ) { const char * text = " \n " " \n " " \n " " " ; Instructions ret ; ret << nop ( ) . thrsw ( ) . header ( text ) << nop ( ) ; if ( last_slot != nullptr ) { ret << * last_slot ; } else { ret << nop ( ) ; } return ret ; }
An instruction may be passed in to make use of a waiting slot.
An instruction may be passed in to make use of a waiting slot .