Invalidate translated shaders after bank changes #793
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!793
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/stamp-shader-bank"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this fixes
A build that changes only shader constant or storage-buffer bank handling can reuse translated shaders from the old code.
vk_bank.cppaffects translation but is missing from the shader cache stamp.Why merge
Change
nx2/build.py: include"vk_bank.cpp"in the explicit translator source tuple.tests/test_shader_stamp_inputs.py: execute the production stamp block and check bank edits, unrelated draw edits and CRLF normalization.Tested
python -I -B tests/run_all.py --jobs 1 --strict shader_stamp_inputs; checks the actual hash block using tiny temporary source files.test_mem_trim.py; the unchanged current base reproduces that failure, tracked in #799.Not covered