GPU watch marks unaligned zero-byte writes and can drop live aliases on empty remaps #2011
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#2011
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@tyr0nsur on GitHub · 2026-11-25 02:53 UTC · original
On
940d32f,writing(base + 1, 0)reports a write to a clean 64 KiB page and its alias. Rounding the unaligned start down and the identical end up produces a one-page range. The same rounding intitle_memory_remappedcan remove an alias link on an empty remap.The regression links two tracked pages and consumes the initial dirty range. It checks the empty write both while the guard lives and after dropping it, checks the empty remap, and then verifies that a real one-byte write through the first address still dirties the second. It uses the existing test helpers.
I reproduced the first empty-write assertion failure on Windows x64 at the revision above. With the small guard and range changes, the regression and the GPU library suite pass. Apply the linked patch, then run
cargo test --locked -p victory-gpu --lib watch::tests::empty_writes_and_remaps_leave_a_clean_page_and_its_alias_untouched -- --exact.Standalone patch and regression test
github-bot referenced this issue2026-11-26 05:18:49 +00:00
@BaggyALPHA on GitHub · 2026-11-25 03:07 UTC · original
Independent Windows validation on
940d32f. I split the two behaviors into separate synthetic probes so each executes on the upstream baseline.All 9 watch tests passed with the linked patch, including its original regression and both local probes. The full GPU library suite with that patch had 144 passed, 2 failed, 2 ignored on RTX 3080. Both failures were the known NVIDIA descriptor-heap tests. Adding #1751 separately brought it to 146 passed, 0 failed, 2 ignored.
All inputs were synthetic. No game files were used. AI-assisted (OpenAI Codex).
@Marvisak on GitHub · 2026-11-25 12:49 UTC · original
Automated triage for the maintainers.
Confirmed in
main(940d32f). Incrates/victory-gpu/src/watch.rs, bothwritingandtitle_memory_remappedcompute(at / PAGE, (at + len).div_ceil(PAGE))with no check forlen == 0, so an unaligned empty range covers one page:writingmarks it (and its aliases) changed, andtitle_memory_remappedremoves that page's alias links.Open PR: #2021, which carries this change against
main, so review can continue there rather than on the patch file in the fork.Generated by Claude Code