VertexLoader: Add more info to m_vertex_size == m_src_ofs assertion

This commit is contained in:
Pokechu22 2023-02-12 19:47:51 -08:00
parent 46b99671d9
commit cc411c4e41
2 changed files with 10 additions and 2 deletions

View File

@ -512,7 +512,11 @@ void VertexLoaderARM64::GenerateVertexLoader()
FlushIcache();
ASSERT(m_vertex_size == m_src_ofs);
ASSERT_MSG(VIDEO, m_vertex_size == m_src_ofs,
"Vertex size from vertex loader ({}) does not match expected vertex size ({})!\nVtx "
"desc: {:08x} {:08x}\nVtx attr: {:08x} {:08x} {:08x}",
m_src_ofs, m_vertex_size, m_VtxDesc.low.Hex, m_VtxDesc.high.Hex, m_VtxAttr.g0.Hex,
m_VtxAttr.g1.Hex, m_VtxAttr.g2.Hex);
m_native_vtx_decl.stride = m_dst_ofs;
}

View File

@ -577,7 +577,11 @@ void VertexLoaderX64::GenerateVertexLoader()
RET();
}
ASSERT(m_vertex_size == m_src_ofs);
ASSERT_MSG(VIDEO, m_vertex_size == m_src_ofs,
"Vertex size from vertex loader ({}) does not match expected vertex size ({})!\nVtx "
"desc: {:08x} {:08x}\nVtx attr: {:08x} {:08x} {:08x}",
m_src_ofs, m_vertex_size, m_VtxDesc.low.Hex, m_VtxDesc.high.Hex, m_VtxAttr.g0.Hex,
m_VtxAttr.g1.Hex, m_VtxAttr.g2.Hex);
m_native_vtx_decl.stride = m_dst_ofs;
}