diff --git a/Source/Core/VideoCommon/VertexLoaderARM64.cpp b/Source/Core/VideoCommon/VertexLoaderARM64.cpp index b65425c451..03bb82d5c2 100644 --- a/Source/Core/VideoCommon/VertexLoaderARM64.cpp +++ b/Source/Core/VideoCommon/VertexLoaderARM64.cpp @@ -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; } diff --git a/Source/Core/VideoCommon/VertexLoaderX64.cpp b/Source/Core/VideoCommon/VertexLoaderX64.cpp index aec42a41a6..ee03d8d582 100644 --- a/Source/Core/VideoCommon/VertexLoaderX64.cpp +++ b/Source/Core/VideoCommon/VertexLoaderX64.cpp @@ -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; }