| 13 | static LightLock queueLock = 1; |
| 14 | |
| 15 | static void gxCmdQueueDoCommands(void) |
| 16 | { |
| 17 | if (shouldStop) |
| 18 | return; |
| 19 | int batchSize = curQueue->lastEntry+MAX_PARALLEL_CMDS-curQueue->curEntry; |
| 20 | while (curQueue->curEntry < curQueue->numEntries && batchSize--) |
| 21 | { |
| 22 | gxCmdEntry_s* entry = &curQueue->entries[curQueue->curEntry++]; |
| 23 | gspSubmitGxCommand(entry->data); |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | void gxCmdQueueInterrupt(GSPGPU_Event irq) |
| 28 | { |
no test coverage detected