sr_flush
srp->sr_flush = SFXGE_FLUSH_INACTIVE;
flush_pending = (srp->sr_flush == SFXGE_FLUSH_PENDING);
srp->sr_flush = SFXGE_FLUSH_DONE;
flush_pending = (srp->sr_flush == SFXGE_FLUSH_PENDING);
srp->sr_flush = SFXGE_FLUSH_FAILED;
srp->sr_flush = SFXGE_FLUSH_DONE;
while (srp->sr_flush != SFXGE_FLUSH_DONE && flush_tries-- > 0) {
srp->sr_flush = SFXGE_FLUSH_DONE;
srp->sr_flush = SFXGE_FLUSH_FAILED;
srp->sr_flush = SFXGE_FLUSH_PENDING;
if (srp->sr_flush == SFXGE_FLUSH_FAILED)
DTRACE_PROBE1(flush, sfxge_flush_state_t, srp->sr_flush);
srp->sr_flush = SFXGE_FLUSH_DONE;