Skip to content

Instantly share code, notes, and snippets.

@john-peterson
Last active December 17, 2015 15:19
Show Gist options
  • Save john-peterson/5630826 to your computer and use it in GitHub Desktop.
Save john-peterson/5630826 to your computer and use it in GitHub Desktop.
AddList: unknown count of vertices found
void RunVertices(int vtx_attr_group, int primitive, int count)
{
if (!count)
return;
RefreshLoader(vtx_attr_group);
g_VertexLoaders[vtx_attr_group]->RunVertices(vtx_attr_group, primitive, count);
if (primitive == 2 && count % 3 != 0) {
NOTICE_LOG(VIDEO, "RunVertices: unknown count of vertices found %u, %u, %u", vtx_attr_group, primitive, count);
for (int i = 1; i <= count; i++) {
float* v = (float*)(VertexManager::s_pCurBufferPointer - i * g_VertexLoaders[vtx_attr_group]->native_stride);
NOTICE_LOG(VIDEO, "Vertex %d: %.1f, %.1f, %.1f", i, v[0], v[1], v[2]);
}
}
}
./dolphin -C log -e User/StateSaves/cylinder_knot_intro.dff
./dolphin -C log -e User/StateSaves/GFZE01.s06
LOG_VTX output too
14:20:126 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 1,9 0,1 5,2,
14:20:127 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 3,3 0,1 0,5,
14:20:128 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 3,3 0,1 5,2,
14:20:130 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 1,9 0,1 -3,8,
14:20:137 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 1,9 0,1 0,5,
14:20:138 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 3,3 0,1 -3,8,
14:20:139 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 3,3 0,1 0,5,
14:20:140 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:20:141 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:20:142 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:20:142 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:20:143 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:20:144 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:20:144 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:20:145 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:21:896 Src\VertexLoaderManager.cpp:129 N[Video]: RunVertices: unknown count of vertices found 0, 2, 8
14:21:899 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 1: 0,0, 0,0, 0,0
14:21:959 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 2: 0,0, 0,0, 0,0
14:21:960 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 3: 0,0, 0,0, 0,0
14:21:960 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 4: 0,0, 0,0, 0,0
14:21:960 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 5: 0,0, 0,0, 0,0
14:21:961 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 6: 0,0, 0,0, 0,0
14:21:961 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 7: 0,0, 0,0, 0,0
14:21:962 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 8: 0,0, 0,0, 0,0
14:21:962 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -2,2 1,3 -37,1,
14:21:963 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -2,1 -0,1 -37,6,
14:21:963 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -2,1 -0,6 -36,2,
14:21:963 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -2,1 0,8 -35,7,
14:21:964 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:21:964 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:21:965 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:21:965 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:21:966 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:21:966 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:21:967 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:21:967 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:23:868 Src\VertexLoaderManager.cpp:129 N[Video]: RunVertices: unknown count of vertices found 0, 2, 8
14:23:869 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 1: 0,0, 0,0, 0,0
14:23:897 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 2: 0,0, 0,0, 0,0
14:23:898 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 3: 0,0, 0,0, 0,0
14:23:898 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 4: 0,0, 0,0, 0,0
14:23:899 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 5: 0,0, 0,0, 0,0
14:23:899 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 6: 0,0, 0,0, 0,0
14:23:899 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 7: 0,0, 0,0, 0,0
14:23:900 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 8: 0,0, 0,0, 0,0
14:23:900 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -3,0 -0,7 -35,0,
14:23:900 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -1,0 -0,7 -35,0,
14:23:901 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -1,0 1,3 -35,0,
14:23:901 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -3,0 1,3 -35,0,
14:23:902 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:23:902 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:23:902 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:23:903 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:23:904 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:23:904 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:23:904 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:23:905 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:24:755 Src\VertexLoaderManager.cpp:129 N[Video]: RunVertices: unknown count of vertices found 0, 2, 8
14:24:772 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 1: 0,0, 0,0, 0,0
14:24:773 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 2: 0,0, 0,0, 0,0
14:24:774 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 3: 0,0, 0,0, 0,0
14:24:774 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 4: 0,0, 0,0, 0,0
14:24:775 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 5: 0,0, 0,0, 0,0
14:24:775 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 6: 0,0, 0,0, 0,0
14:24:776 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 7: 0,0, 0,0, 0,0
14:24:776 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 8: 0,0, 0,0, 0,0
14:24:776 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -2,5 -0,1 -34,7,
14:24:777 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -1,3 0,0 -34,7,
14:24:777 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -1,5 0,8 -34,7,
14:24:778 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -2,7 0,7 -34,7,
14:24:779 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:24:780 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:24:780 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:24:780 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:24:781 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:24:781 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:24:782 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:24:782 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:26:582 Src\VertexLoaderManager.cpp:129 N[Video]: RunVertices: unknown count of vertices found 0, 2, 8
14:26:609 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 1: 0,0, 0,0, 0,0
14:26:610 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 2: 0,0, 0,0, 0,0
14:26:611 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 3: 0,0, 0,0, 0,0
14:26:612 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 4: 0,0, 0,0, 0,0
14:26:612 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 5: 0,0, 0,0, 0,0
14:26:613 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 6: 0,0, 0,0, 0,0
14:26:614 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 7: 0,0, 0,0, 0,0
14:26:614 Src\VertexLoaderManager.cpp:132 N[Video]: Vertex 8: 0,0, 0,0, 0,0
14:26:615 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -1,4 0,4 -34,7,
14:26:615 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -2,2 0,7 -34,7,
14:26:616 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -2,7 0,2 -34,7,
14:26:618 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: -1,9 -0,0 -34,7,
14:26:620 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:26:623 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:26:624 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:26:625 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:26:626 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:26:626 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:26:627 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
14:26:627 Src\VertexLoader_Position.cpp:83 W[Video]: vtx: 0,0 0,0 0,0,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment