Add some additional reporting.

This commit is contained in:
Unknown W. Brackets 2013-08-24 11:19:35 -07:00
parent cd70250d8c
commit 8dbcf6572e
2 changed files with 9 additions and 3 deletions

View File

@ -662,7 +662,7 @@ void GLES_GPU::ExecuteOp(u32 op, u32 diff) {
} }
if (!Memory::IsValidAddress(gstate_c.vertexAddr)) { if (!Memory::IsValidAddress(gstate_c.vertexAddr)) {
ERROR_LOG(G3D, "Bad vertex address %08x!", gstate_c.vertexAddr); ERROR_LOG_REPORT(G3D, "Bad vertex address %08x!", gstate_c.vertexAddr);
break; break;
} }
@ -672,12 +672,18 @@ void GLES_GPU::ExecuteOp(u32 op, u32 diff) {
void *inds = 0; void *inds = 0;
if ((gstate.vertType & GE_VTYPE_IDX_MASK) != GE_VTYPE_IDX_NONE) { if ((gstate.vertType & GE_VTYPE_IDX_MASK) != GE_VTYPE_IDX_NONE) {
if (!Memory::IsValidAddress(gstate_c.indexAddr)) { if (!Memory::IsValidAddress(gstate_c.indexAddr)) {
ERROR_LOG(G3D, "Bad index address %08x!", gstate_c.indexAddr); ERROR_LOG_REPORT(G3D, "Bad index address %08x!", gstate_c.indexAddr);
break; break;
} }
inds = Memory::GetPointer(gstate_c.indexAddr); inds = Memory::GetPointer(gstate_c.indexAddr);
} }
#ifndef USING_GLES2
if (prim > GE_PRIM_RECTANGLES) {
ERROR_LOG_REPORT_ONCE(reportPrim, G3D, "Unexpected prim type: %d", prim);
}
#endif
int bytesRead; int bytesRead;
transformDraw_.SubmitPrim(verts, inds, prim, count, gstate.vertType, -1, &bytesRead); transformDraw_.SubmitPrim(verts, inds, prim, count, gstate.vertType, -1, &bytesRead);

View File

@ -566,7 +566,7 @@ void GPUCommon::ProcessEvent(GPUEvent ev) {
break; break;
default: default:
ERROR_LOG(G3D, "Unexpected GPU event type: %d", (int)ev); ERROR_LOG_REPORT(G3D, "Unexpected GPU event type: %d", (int)ev);
} }
} }