mirror of https://github.com/mgba-emu/mgba.git
DS GX: Clean up unused code
This commit is contained in:
parent
e9c1a53cfb
commit
3d25a10f3d
11
src/ds/gx.c
11
src/ds/gx.c
|
@ -24,8 +24,6 @@ static void DSGXDummyRendererWriteRegister(struct DSGXRenderer* renderer, uint32
|
||||||
|
|
||||||
static void DSGXWriteFIFO(struct DSGX* gx, struct DSGXEntry entry);
|
static void DSGXWriteFIFO(struct DSGX* gx, struct DSGXEntry entry);
|
||||||
|
|
||||||
static bool _boxTestVertex(struct DSGX* gx, struct DSGXVertex* vertex);
|
|
||||||
|
|
||||||
static const int32_t _gxCommandCycleBase[DS_GX_CMD_MAX] = {
|
static const int32_t _gxCommandCycleBase[DS_GX_CMD_MAX] = {
|
||||||
[DS_GX_CMD_NOP] = 0,
|
[DS_GX_CMD_NOP] = 0,
|
||||||
[DS_GX_CMD_MTX_MODE] = 2,
|
[DS_GX_CMD_MTX_MODE] = 2,
|
||||||
|
@ -541,15 +539,6 @@ static void _flushOutstanding(struct DSGX* gx) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool _boxTestVertex(struct DSGX* gx, struct DSGXVertex* vertex) {
|
|
||||||
vertex->viewCoord[0] = _dotViewport(vertex, &gx->clipMatrix.m[0]);
|
|
||||||
vertex->viewCoord[1] = _dotViewport(vertex, &gx->clipMatrix.m[1]);
|
|
||||||
vertex->viewCoord[2] = _dotViewport(vertex, &gx->clipMatrix.m[2]);
|
|
||||||
vertex->viewCoord[3] = _dotViewport(vertex, &gx->clipMatrix.m[3]);
|
|
||||||
|
|
||||||
return !_cohenSutherlandCode(vertex);
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool _boxTest(struct DSGX* gx) {
|
static bool _boxTest(struct DSGX* gx) {
|
||||||
int16_t x = gx->activeEntries[0].params[0];
|
int16_t x = gx->activeEntries[0].params[0];
|
||||||
x |= gx->activeEntries[0].params[1] << 8;
|
x |= gx->activeEntries[0].params[1] << 8;
|
||||||
|
|
Loading…
Reference in New Issue