summaryrefslogtreecommitdiff
path: root/src/dolphin/gx/GXDisplayList.c
blob: e8a170fac553b1945bcf90e12a7f26ea1ef35992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * GXDisplayList.c
 * Description:
 */

#include "dolphin/gx/GXDisplayList.h"
#include "dolphin/gx/GX.h"

void GXCallDisplayList(void* list, u32 nbytes) {
    if (gx->dirtyState != 0) {
        __GXSetDirtyState();
    }

    if (*(u32*)gx == 0) {
        __GXSendFlushPrim();
    }

    GXFIFO.u8 = 0x40;
    GXFIFO.u32 = (u32)list;
    GXFIFO.u32 = nbytes;
}