DS GX: Clean up unused code

This commit is contained in:
Vicki Pfau 2017-04-10 21:15:31 -07:00
parent e9c1a53cfb
commit 3d25a10f3d
1 changed files with 0 additions and 11 deletions

View File

@ -24,8 +24,6 @@ static void DSGXDummyRendererWriteRegister(struct DSGXRenderer* renderer, uint32
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,
@ -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) {
int16_t x = gx->activeEntries[0].params[0];
x |= gx->activeEntries[0].params[1] << 8;