Lib/vc4/vc4.cpp
/**
 * Enable QPUs if not already enabled.
 */
Enable QPUs if not already enabled.
Enable QPUs if not already enabled .
void enableQPUs() {
  int mb = getMailbox();
  if (numQPUUsers == 0) {
    int qpu_enabled = !qpu_enable(mb, 1);
    if (!qpu_enabled) {
      fatal("Unable to enable QPUs. Check your firmware is latest.");
    }
  }
  numQPUUsers++;
}
void enableQPUs ( ) { int mb = getMailbox ( ) ; if ( numQPUUsers == 0 ) { int qpu_enabled = ! qpu_enable ( mb , 1 ) ; if ( ! qpu_enabled ) { fatal ( " " ) ; } } numQPUUsers ++ ; }
Enable QPUs if not already enabled.
Enable QPUs if not already enabled .