Experiment/pr2121 #2815
No reviewers
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!2815
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2815"
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?
@theDVNVS on GitHub · 2026-11-25 21:17 UTC · original
theDVNVS:experiment/pr2121-nemotron→main· +53163 −2092 · 121 files · 35 commits · openNo description provided.
ffe310e) 578d459c34Every s_endpgm (and the loop-limit abort) now branches to one shared ret block, as DXC's output always has. A loop left by both a break and a return could not be structured by dxil-spirv (vkd3d-proton): it emitted invalid SPIR-V ("exits the loop ... but not via a structured exit"), on which RADV segfaulted in vkCreateGraphicsPipelines (exit code 3). Co-Authored-By: Claude Opus 5.5 <[email protected]>Grand Theft Auto VI places its descriptor heaps in its own memory and copies whole slots there itself; no create or copy call reports those writes, so the host slot kept what it was mirrored from before. Slots a shader reads directly by index (not through a table) are only made from what was mirrored: in the world a mesh shader read a slot as a constant buffer while the host slot still held a texture view, whose upper half it took for a buffer at address 0 (a GPU page fault and a lost device; likely the "world's low-address page faults" noted at null_view). Before each submission, the 64 KiB blocks of every shader-visible heap written since the last one (watch::writes) are mirrored again; mirror() skips slots whose record did not change. Found with umr wave dumps under Proton (RX 9070 XT): the faulting waves held s[8:11] = {0, 0x00400000, 0x00248000, 0}, the second half of an image descriptor, loaded from heap slot ~1,061,522. Before, the world lost the device after 5-90 s; with this, 90 s, then a different fault (next commit). Co-Authored-By: Claude Opus 5.5 <[email protected]>NVIDIA takes shader-visible view heaps of at most 1,000,000 descriptors; the title lays out 1,245,184 slots, and translated shaders index up to HEAP_VIEWS (2^21). The capped heap left title slots past the cap out ("title slot past the host heap"): views there read null. A host that refuses a view heap of every index shaders take and the dynamic slots (descriptor::host::view_pages, asked once; set VICTORY_VIEW_PAGES=1 to page on any host) keeps the title's order in a virtual heap of 256-slot pages: - The host heap is what the host accepts. Host page 0 stays null (where pages with no place read), page 1 takes writes once there is no room left, and the dynamic slots' pages are placed together after them. Any other page is placed in turn when a slot of it is first written, and entered in the page table: a dword per page past the view-stride table, which shaders already have bound. A null made in a page with no place takes none. - Translated shaders take each view heap index through the table when view pages are set (Shader::heap_handle: one table load, a shift and an or per handle; samplers are not paged). The host sets it where it pages, and the shader cache key carries it, so a host that does not page translates as before. - Draws bind the page table of whichever view heap they bind: the title's, else our own. - Physical descriptor writes and GPU reads use the mapped physical slot (HostHeap::cpu/gpu_handle translate through pages). Pages are not given back yet. When they run out, further pages read null with a warning; the pages in use are logged at each power of two, so a run shows whether a title's live slots fit. Tests: - descriptor::host::tests::pages_are_placed_once_on_first_write: page placement, its table entries, reads placing none, running out. - descriptor::host::tests::written_slots_are_counted_per_page: slots written are counted once each, in the pages placed on a write and in the pages with no room left; reads count none.@Marvisak on GitHub · 2026-11-25 23:15 UTC · original
Automated triage for the maintainers.
This PR does not merge cleanly into
main: it conflicts in about 60 files across every crate (among themcrates/victory-gpu/src/list.rs,crates/victory-hle/src/modules/xmem.rs,crates/victory-loader/Cargo.tomlandcrates/victory-shader/src/emit/lower.rs). Its content will be reviewed once it is rebased onto currentmain. A branch that carries only the change it means to make is much easier to review.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.