VertexLoader: Fix loading tangent/binormal caches with NormalIndex3 #11432
+132
−29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Fixes the generic nightly builder (see #10808 (comment)).
I didn't catch this because I did my testing using
COMPARE_VERTEXLOADERS, which did not check the various caches. The issue was the software vertexloader not writing to the tangent/binormal caches, but this was obscured since the JIT vertexloader did load to them.Additionally,
COMPARE_VERTEXLOADERSwouldn't be visible in unit tests since logging wasn't enabled. I changed that to asserts, and also changed the test system to register a custom message alert handler (as otherwise the assertion popup would appear on the msvc buildbot and never close, forcing the 20-minute timeout, and on other platforms a failed dolphin assertion wouldn't be treated as a test failure).