diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2022-06-03 20:43:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-03 15:43:30 -0400 |
| commit | 1738b19d63d65afd01e1043a5359502ffef2e40e (patch) | |
| tree | 28046b3903f20dfeb34c0bbddea44450ce3e2308 /src/code/graph.c | |
| parent | ee5ac838b693f14710954f361ad91936975d00b7 (diff) | |
More documentation for sched.c (#1219)
* More documentation for sched.c
* VI retrace -> vertical retrace, attempt to clarify comment in viconfig
* Further review changes, fix inconsistent capitalization of PreNMI (PRENMI -> PreNMI)
* Fix typo
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
* Change TaskSwapBuffer, change comment on OS_SC_DRAM_DLIST to unimplemented
* Rename SchedContext/gSchedContext to Scheduler/gScheduler
* Comments fixes
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
* Format
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
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 868506c7d..f70663b59 100644 --- a/src/code/graph.c +++ b/src/code/graph.c @@ -218,7 +218,7 @@ void Graph_TaskSet00(GraphicsContext* gfxCtx) { task->yield_data_size = sizeof(gGfxSPTaskYieldBuffer); scTask->next = NULL; - scTask->flags = OS_SC_RCP_MASK | OS_SC_SWAPBUFFER | OS_SC_LAST_TASK; + scTask->flags = OS_SC_NEEDS_RSP | OS_SC_NEEDS_RDP | OS_SC_SWAPBUFFER | OS_SC_LAST_TASK; if (SREG(33) & 1) { SREG(33) &= ~1; scTask->flags &= ~OS_SC_SWAPBUFFER; @@ -229,10 +229,10 @@ void Graph_TaskSet00(GraphicsContext* gfxCtx) { scTask->msg = NULL; cfb = &sGraphCfbInfos[sGraphCfbInfoIdx++]; - cfb->fb1 = gfxCtx->curFrameBuffer; + cfb->framebuffer = gfxCtx->curFrameBuffer; cfb->swapBuffer = gfxCtx->curFrameBuffer; cfb->viMode = gfxCtx->viMode; - cfb->features = gfxCtx->viFeatures; + cfb->viFeatures = gfxCtx->viFeatures; cfb->xScale = gfxCtx->xScale; cfb->yScale = gfxCtx->yScale; cfb->unk_10 = 0; @@ -243,10 +243,10 @@ void Graph_TaskSet00(GraphicsContext* gfxCtx) { if (1) {} - gfxCtx->schedMsgQueue = &gSchedContext.cmdQueue; + gfxCtx->schedMsgQueue = &gScheduler.cmdQueue; - osSendMesg(&gSchedContext.cmdQueue, (OSMesg)scTask, OS_MESG_BLOCK); - Sched_SendEntryMsg(&gSchedContext); + osSendMesg(&gScheduler.cmdQueue, (OSMesg)scTask, OS_MESG_BLOCK); + Sched_Notify(&gScheduler); } void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) { |
