Store beside the guards: non-temporal vector stores; diagnostics name the stores not understood #4026
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4026
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4026"
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?
@mstrmoos on GitHub · 2026-11-30 14:52 UTC · original
mstrmoos:pr/store-beside-movnt→main· +50 −4 · 3 files · 2 commits · open[pr-fix] [pr-diagnostics]
What it changes
With
VICTORY_STORE_BESIDE=1, a store that faults on a guarded 64 KiB block is decoded and done through the layer's own view of the page (titlewrite::store). The guard stays on, and the block doesn't need aVirtualProtectto open it. A store the decoder doesn't understand opens the block instead. That costs a protection change on the title's thread, and another when the block is guarded again.Most of the stores it didn't understand in play were one form: the non-temporal vector store,
vmovntps/movntps/movntpd([VEX] 0F 2B /r). For the store itself, it does whatvmovaps(0F 29) does. The cache hint makes no difference to a store done once on the title's behalf.decode.rs:0F 2Bis accepted next to0F 29, in both the 128-bit and the 256-bit (VEX.L) paths. There are two cases instores_are_told_by_their_bytes.How it was tested
VICTORY_COPY_BESIDE=1, same shader cache.vmovntps [rdx+rax], xmm4(26,508),vmovntps [rdx+rax+20h], xmm2(3,396) andvmovntps [rdx+rax+10h], xmm0(3,375).0F 2Bform is left in the list.vpmaskmovdstores (VEX 0F38 8E), about 2 a frame, which isn't worth emulating. Then a fewvextractf128andvmovdqu8.cargo test --locked -p victory-gpu:titlewritetests pass.shader_cache::tests::every_switch_of_the_translator_is_in_the_keyfails on main as it is (stale names, see #3210).host::card_steps::tests::places_written_after_sending_are_learnedfailed once in the full parallel run and passes on its own. It fails intermittently on main too.cargo clippy --workspace --all-targets -- -D warningsstops on main as it is invictory-shader(PAIR_MEETINGS,lane_regions,while loads) andvictory-loader(unwind_copy). Nothing here touches those, and there is nothing new from these files.Checked for overlap
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.