diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2024-01-20 15:47:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-20 20:47:00 -0300 |
| commit | 665353f3446db43d0efe0e9c6a9c80d16684da7a (patch) | |
| tree | 55f492f4661570636c9056561beb8e8fa6135d3d /src/code/graph.c | |
| parent | 732455fdef80ed641f0af30eb0e54d3a07ac876e (diff) | |
Irqmgr + scheduler Docs (#1527)
* irqmgr docs
* Sched_FlushTaskQueue
* scheduler docs
Diffstat (limited to 'src/code/graph.c')
| -rw-r--r-- | src/code/graph.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/code/graph.c b/src/code/graph.c index eb0277f3a..e13a6ea77 100644 --- a/src/code/graph.c +++ b/src/code/graph.c @@ -154,7 +154,7 @@ retry: osSyncPrintf("GRAPH SP TIMEOUT\n"); if (retryCount >= 0) { retryCount--; - Sched_SendGfxCancelMsg(&gSchedContext); + Sched_SendGfxCancelMsg(&gScheduler); goto retry; } else { // graph.c: No more! die! @@ -202,13 +202,13 @@ retry: cfb = &sGraphCfbInfos[cfbIdx]; cfbIdx = (cfbIdx + 1) % ARRAY_COUNT(sGraphCfbInfos); - cfb->fb1 = gfxCtx->curFrameBuffer; + cfb->framebuffer = gfxCtx->curFrameBuffer; cfb->swapBuffer = gfxCtx->curFrameBuffer; if (gfxCtx->updateViMode) { gfxCtx->updateViMode = false; cfb->viMode = gfxCtx->viMode; - cfb->features = gfxCtx->viConfigFeatures; + cfb->viFeatures = gfxCtx->viConfigFeatures; cfb->xScale = gfxCtx->xScale; cfb->yScale = gfxCtx->yScale; } else { @@ -223,9 +223,9 @@ retry: osRecvMesg(&gfxCtx->queue, NULL, OS_MESG_NOBLOCK); } - gfxCtx->schedMsgQ = &gSchedContext.cmdQ; - osSendMesg(&gSchedContext.cmdQ, scTask, OS_MESG_BLOCK); - Sched_SendEntryMsg(&gSchedContext); + gfxCtx->schedMsgQ = &gScheduler.cmdQueue; + osSendMesg(&gScheduler.cmdQueue, (OSMesg)scTask, OS_MESG_BLOCK); + Sched_SendNotifyMsg(&gScheduler); } void Graph_UpdateGame(GameState* gameState) { |
