all repos — mgba @ 3d25a10f3d9e5baaa6a42ffa9d06ac9851b94242

mGBA Game Boy Advance Emulator

DS GX: Clean up unused code
Vicki Pfau vi@endrift.com
Mon, 10 Apr 2017 21:15:31 -0700
commit

3d25a10f3d9e5baaa6a42ffa9d06ac9851b94242

parent

e9c1a53cfbf03252db40b5a19b830f8eb968c684

1 files changed, 0 insertions(+), 11 deletions(-)

jump to
M src/ds/gx.csrc/ds/gx.c

@@ -24,8 +24,6 @@ static void DSGXDummyRendererWriteRegister(struct DSGXRenderer* renderer, uint32_t address, uint16_t value);

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] = { [DS_GX_CMD_NOP] = 0, [DS_GX_CMD_MTX_MODE] = 2,

@@ -539,15 +537,6 @@ return;

} DSGXWriteFIFO(gx, (struct DSGXEntry) { gx->outstandingCommand[0] }); } -} - -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) {