GPU: page view heaps a host caps below the slots shaders index #2121
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!2121
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2121"
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?
@0xkn0wh3r3 on GitHub · 2026-11-25 05:31 UTC · original
0xkn0wh3r3:gpu/view-heap-pages→main· +2529 −107 · 14 files · 16 commits · openTowards #1835, #1808 and #1760.
The problem
On NVIDIA, views the title puts in the upper part of its descriptor heap read null. Issue reports put 61,000 to 173,000 live slots past the cap in the world (#1760), and two view-heap unit tests failed on NVIDIA (#1835).
The mechanism: 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 host heap holds title slotiat host sloti, so the capped heap kept 934,464 title slots and left the rest out ("title slot past the host heap").HEAP_VIEWS)The fix
A host that refuses a view heap of every index shaders take plus the dynamic slots (
descriptor::host::view_pages, asked once; setVICTORY_VIEW_PAGES=1to page on any host) keeps the title's order in a virtual heap of 256-slot pages:VIEW_PAGE_TABLE), which shaders already have bound. A null made in a page with no place takes none.Options::view_pagesis set (Shader::heap_handle: per handle, one table load plus a shift, a multiply and an add to address it and a shift, an and and an or to place the slot; samplers are not paged). The host sets it where it pages (shader_cache::options), and the shader cache key carries it, so a host that does not page translates as before.Limits:
HEAP_VIEWS - 2is capped atPAGED_TITLE_VIEWS(NULL_BUFFER_VIEW - 1 - DYNAMIC, 1,835,005 title slots), with the warningpaged view heap capped at ... title slots, as the unpaged heap is capped at the host's limit. Title slots past it are left out ("title slot past the host heap"). The title's 1,245,184 slots are well below it.Reclaiming pages
In-world runs on an RTX 4090 and 5080 filled all 3,906 host pages within minutes. At the overflow, "view heap pages written with no room left" reached pages=1024 with about 231,000 slots written, about 226 of 256 a page, so smaller pages would not fit more. The title writes fresh descriptors over most of its 1,245,184 slots during a run, and placing on first write without ever giving back runs out. Pages not used lately are now taken back.
HostHeap::gpuhands out a handle in it, when a draw binds a slot of it through a table, and when its read mark comes in.VIEW_PAGE_READS + page(VIEW_PAGE_READS = VIEW_READS + HEAP_VIEWS) in the view-writes bitmap, where it is still clear. That is one load, a test and a branch per page and console block (about 10 instructions, the atomic only the first time in a submission). A handle first used inside guarded code that an instruction made is marked there, with the atomic alone. The host bitmap grows by 8,192 bits, andshadow::take_page_readstakes and clears the marks of both bitmaps after each submission. The shader cache key changes with the translator's sources.979e3a7, suggested by @kawaii-shakal). 32 is more than a frame's submissions, so pages read every frame stay. Otherwise the strict ages alone apply. Only pages placed on a write that hold title slots only can be taken back. The dynamic slots' pages and the host's own pair and null-view pages never are.view heap pages unused lately taken back(pages,total,free,in_use, andrelaxed(whether that pass took pages younger than the strict ages) withrelaxed_total) andview heap pages placed again(pages,taken_back,refused,in_use). The placed-again line keeps two counts apart (6f8b588):taken_backis pages taken back by reclaiming and then read, written or drawn through (a wrong guess);refusedis pages written when no host page was free that got a place later. A page taken back and then written with no room counts undertaken_back.pagesis their sum, and the line is logged where either count reaches a power of two.host view heap pages in use,no room left in the host view heapandview heap pages written with no room leftkeep their meaning: the last two now appear only if nothing old enough can be taken back, and a refusal makes the next pass relaxed.view heap dynamic slots in use(248e4c3, on paged and unpaged hosts) givespeak, the most dynamic slots taken at once since the heap was made,of, the heap's dynamic slots (262,144 = 1,024 host pages on a paged host), andrun, the longest run of them a table asked for; it is logged wherepeakorrunreaches a power of two. It measures whether the dynamic region could be smaller on paged hosts to leave the title more of the 3,906 host pages.// shortcut:intake_back_pages): a handle fromgpu()for a slot of a page placed on a write, recorded into a list that stays unsubmitted longer than pages are kept unused (32 submissions once a write found no room), would read whatever that host page holds by then. Lists bind title slots through the page table, andgpu()stamps the page. No list of ours bakes a title slot's handle today: the unordered access clear uses a dynamic slot.The page code moves to
descriptor/pages.rs.Testing
Review fixes (
0bc5edb), the full heap and the eviction window (found by @passerbyyhx):draw::tests::a_placed_texture_read_with_no_page_free_is_made_after_one_submission(GPU, throughHost::execute): no host page free; page 3's placed texture was taken back and page 2 took its host page since. A shader reads the texture in four submissions: page 2 is taken back in the first pass and page 3 placed in the same host page. Per submission, (texture held, buffer view in the page held):[(true, true); 4], a placed texture not read stays unmade. Atfedb38d:[(false, true), (true, true), (true, true), (true, true)], the texture held a submission after its neighbour.draw::tests::a_placed_texture_read_with_no_room_before_is_made_after_one_submission: the texture was read once while its page found no room (made in the scratch page), then read again in four submissions once another page is old enough:[true; 4]. Atfedb38d:[false; 4](its read was already taken, and nothing pressed for room). With the reorder and the read pressure but without re-taking its read:[false, true, true, true].descriptor::pages::tests::a_page_read_again_with_no_room_presses_the_next_pass(no GPU): with no host page free and none old by the strict ages, a pass takes nothing; after a read of a taken-back page, the next pass takes back the page unused longest and the page read is placed in its host page.draw::tests::a_page_taken_back_keeps_another_heaps_read_of_its_slot_for_eviction: two paged heaps with placed textures at the same slot, the second's read (and slot 7's) marked; the first takes back the page with its own record there.reads_sincereturns both slots and names the second heap's texture. Atfedb38d:[7].cargo test -p victory-gpu --lib: 254 passed, 0 failed, 1 ignored (this NVIDIA host pages view heaps). With--features diagnostics: 268 passed;pipeline::placed_uav_tests::placed_uav_dispatch_writes_its_texturefails, as atfedb38d. Clippy with and without--features diagnostics: 0 warnings.cargo xtask policyok.Review fixes (
fedb38d):draw::tests::a_placed_texture_in_a_page_taken_back_is_made_after_one_submission_reads_it(GPU, throughHost::execute): a compute shader sets the slot's and page's read marks in each submission. After the page is taken back, the slot holds its texture again after the first submission that reads it. Before:[false, false, true, true]over four submissions.host::tests::view_heap_pages_placed_by_a_read_keep_the_texture_made_for_it:make_readthenturn_pages(the orderHost::executehad atfedb38d; a texture made for a draw before the heap sync is in the same place). Before, the remake nulled the texturemake_readhad just made.host::tests::view_heap_pages_taken_back_make_their_buffer_views_again: a constant buffer, a buffer SRV and a buffer UAV in a page taken back are made again when a read mark places the page (this passed before too), and a draw binding one of them places the page at once (before: it stayed unplaced).host::tests::view_heap_slots_written_with_no_room_are_made_when_their_page_is_placed: a view written to the scratch page holds nothing and is made once its page is placed.cargo test -p victory-gpu --lib: 250 passed, 0 failed, 1 ignored (RTX 5070 Ti, which pages). With--features diagnostics: 263 passed;frame::tests::waits_end_on_ticks_and_count_frames(flaky) andpipeline::placed_uav_tests::placed_uav_dispatch_writes_its_texturefail, and both fail atc23f708too. Clippy with and without--features diagnostics: 0 warnings.cargo xtask policyok.The paged title-heap cap (
07a132db):host::tests::a_paged_heap_of_every_slot_shaders_index_is_capped(GPU, paged host): a title heap ofHEAP_VIEWSslots is capped atPAGED_TITLE_VIEWS. The first title-or-dynamic page, the last dynamic slot and both null buffer views have their pages placed in the page table, within its 8,192 entries. All dynamic slots can be taken, and a title slot past the cap has no mirror. Without the cap the same test panics inHostHeap::new(index out of bounds: the len is 8192 but the index is 8192, the dynamic slots' pages past the page table).cargo test -p victory-gpu --lib: 241 passed (at6f8b588), 0 failed, 1 ignored, both with and withoutVICTORY_VIEW_PAGES=1. At979e3a7: 244 passed, 1 ignored withVICTORY_VIEW_PAGES=1; without it, 243 passed andviews_bound_while_another_slot_gets_its_texture_do_not_waitfailed, which fails on main on this card too. Clippy with and without--features diagnostics: 0 warnings.cargo xtask policyok.The dynamic-slot peak (
248e4c3):host::tests::the_dynamic_peak_follows_takes_and_releases(GPU): three runs taken (10, 30, 20) give a peak of 60; giving back the 30 leaves 30 in use and the peak at 60, and giving them back again changes nothing; taking 25 leaves the peak at 60, then 15 more raises it to 70. The longest run asked for is 30, then the whole region once a request for all of it fails.dynamic_powers_of_two_are_passed_oncechecks when the line is logged.cargo test -p victory-gpu --lib: 246 passed, 0 failed, 1 ignored, both with and withoutVICTORY_VIEW_PAGES=1. Clippy with and without--features diagnostics: 0 warnings.cargo xtask policyok.Reclaiming (
cae596c,a12b972), on an NVIDIA card that pages automatically, and withVICTORY_VIEW_PAGES=1:descriptor::pagesunit tests (no GPU):gpu()handle, draw stamp);taken_backonly, pages refused room and placed later underrefusedonly, and a page taken back then refused room undertaken_back(6f8b588);979e3a7): with no refused write, pages younger than the strict ages stay however few host pages are free; after one, pages unused for more than 32 submissions are taken back oldest first up to the high-water mark though younger than 10 s, while a page used exactly 32 submissions before and one used now stay; a refusal relaxes one pass only, including a pass that had room enough.host::tests::view_heap_pages_taken_back_are_placed_again_when_read(GPU, real paged host heap): a placed texture's slot in page 1 is taken back (table entry null, slot holds nothing, record still noted, a heap sync leaves it). Its page read mark throughtake_page_readsandturn_pagesplaces it again with the slot made from the title's record, and a read of the slot then makes its texture.emit::stride_tests::views_read_in_a_paged_view_heap_mark_their_pages(hardware and WARP): a program translated with pages and marks reads virtual slot 1,099,777 and writes its table's UAV at slot 0. Exactly bitsVIEW_PAGE_READS + 4296andVIEW_PAGE_READS + 0are set.cargo test -p victory-gpu --lib: 203 passed, 0 failed, both with and withoutVICTORY_VIEW_PAGES=1.cargo test -p victory-shader --lib: all pass excepta_heap_buffer_read_by_element_takes_the_views_strideandgathers_at_a_level_match_the_hardware, as before.dxil.dllisn't installed here, so the new DXIL was checked by pipeline creation on hardware and WARP, not by the validator.--features diagnostics: 0 warnings.cargo xtask policyok.Earlier:
descriptor::host::tests::pages_are_placed_once_on_first_write: page placement, its table entries, reads placing none, running out.emit::stride_tests::a_heap_index_in_a_paged_view_heap_reads_where_its_page_is: a program translated with pages reads its buffer at virtual slot 1,099,777 through the table exactly as the plain program reads slot 1, on an RTX 5070 Ti (driver 621.24) and WARP.dynamic_slots_are_held_until_releasedandlists_share_a_table_and_copies_keep_their_viewsnow pass (both fail on main there).memory::tests::a_submission_that_missed_leaves_the_copies_at_onceis paged the same way: itsWRITEshader looks its slot up in the page table, and its root layout binds the whole host heap and the view-stride table.emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zerosnow passes on NVIDIA too. The shader test host made a 2^21-slot heap for its null buffer views, which the driver refuses. It now pages them where the device caps the heap, and the test translates with view pages there (Host::null_buffer_page, second commit).cargo test -p victory-gpuand-p victory-shader: all pass on the RTX 5070 Ti exceptemit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_strideandemit::synthetic_tests::gathers_at_a_level_match_the_hardware, which fail on main there too (the test host's structured views, #1887).Not verified
979e3a7(32 submissions) has not been measured in the title yet. Whether the pages a world uses at once fit in 2,880 host pages, and how often a taken-back page is read again, is whatview heap pages unused lately taken back,view heap pages placed again(itstaken_back=against itsrefused=) and (if it still appears)no room left in the host view heapwill show. Whether the dynamic region can be smaller on paged hosts is what the largestpeak=ofview heap dynamic slots in usein a title run will show.Related: how this differs from the open heap PRs
#1751, #1133, #1548, #1777, #1779 and #1349 change how the capped heap is laid out or clamp indices past the cap. None maps title slots past it to host slots, so 300,000+ title slots still have no descriptor under each (measured in #1760). This one keeps every title slot addressable, as long as the pages the title uses within about 10 s and 300 submissions (32 submissions once room runs out) fit in 2,880 host pages (737,280 slots). Older pages are taken back and placed again when used.
Rebased onto
13f91ca850b66fmakes heap handles per descriptor at a fixed address and per join. All of those paths go throughShader::heap_handle, so they are paged too.a_submission_that_missed_leaves_the_copies_at_onceis adjusted for paging, as described under Testing.Rebased onto
842b0cb2bba792) gives the view addresses an entry per dynamic slot. Those entries are indexed by virtual slot, so paging leaves them as they are. Its testview_addresses_cover_tables_made_afreshsits next to the paging tests indescriptor/host.rs(the paging tests move todescriptor/pages.rsin the last commit, as before). It passes on the RTX 5070 Ti, which pages.compute_view_marks_rebind_after_depth_twin_conversion(#2155) translates withshader_cache::options(), which is how the runtime translates, instead of buildingOptionsitself.Optionsnow has theview_pagesfield.lower.rsis still under the 512 KiB policy limit.Rebased onto
63bcca4README.md. No conflicts.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 kept 934,464 title slots and left the rest out ("title slot past the host heap"): views there read null. Issue reports put 61,000 to 173,000 live slots past the cap in the world (#1760), and two view-heap unit tests failed on NVIDIA (#1835). 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 1,000,000 slots. 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 (tables of them are bound as host ranges). 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 (`VIEW_PAGE_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 `Options::view_pages` is 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 (`shader_cache::options`), and the shader cache key carries it, so a host that does not page translates as before. - Draws bind the stride (and page) table of whichever view heap they bind: the title's, else our own (as write marks already do), where the stride table was taken from the title's heap only. Pages are not given back yet, and the host has 3,906, of which 1,026 are fixed (null, scratch, dynamic): 2,880 for the title's 4,864 virtual pages. 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. - `emit::stride_tests::a_heap_index_in_a_paged_view_heap_reads_where_its_page_is`: a program translated with pages reads its buffer at virtual slot 1,099,777 through the table exactly as the plain program reads slot 1, on an RTX 5070 Ti and WARP (expected values on WARP). - On the RTX 5070 Ti, which pages, `dynamic_slots_are_held_until_released` and `lists_share_a_table_and_copies_keep_their_views` now pass (both fail on main there); the second's HLSL stand-in for a translated shader now indexes the heap as they do, through the page table.github-bot referenced this pull request2026-11-26 05:17:14 +00:00
@yualk on GitHub · 2026-11-25 05:48 UTC · original
Independent owned texture check at
442632413ce4on Windows RTX 5070 Ti (10de:2c05, driver 610.88, auto-paged) and explicit WARP (1414:008c, forced paging). Used the realHostHeap::new(false, 1245184)with a 1,000,000-slot physical heap, and its normalcpu(index)page allocator/write destination. Two same-shaped RGBA8 textures with distinct bit patterns occupied virtual slots 17 and 1,126,417 (same in-page offset). A DXC 6.6 shader read the actual upload-backed page table and echoed the chosen physical slots plus sampled texels in each fence-completed arm. The upper slot returned the correct typed null until publication, then its own texelcb683b2e, with low617fa5c3unchanged. After reducing the allocator's remaining capacity to zero (only in the fixture), a real third texture descriptor write went to scratch and the third virtual slot still read zero; neither admitted neighbor changed. This check doesn't fill a title's real page capacity and doesn't measure title frames or use translated shader code.One source-level failure case: the stride upload returns
Noneon Create/Map failure, but paged initialization substitutes zero for the base and writes atVIEW_PAGE_TABLE. Could reject a paged heap with no mapped stride/page table before publishing its GPU range. I did not induce OOM. Also, the unplaced page is filled with a Texture2D null; my test deliberately used that dimension and doesn't establish safe null fallbacks for other resource kinds (D3D12 null descriptor rules). AI-assisted; no title data or captures used.@fiestorra on GitHub · 2026-11-25 05:49 UTC · original
Measured on the card the cap affects: the slots past the heap go from 310,720 to zero, and the cap line disappears
I ran this branch on the machine where the problem reproduces — RTX 4090, driver
32.0.16.2124, session 1, release build, empty cache, 70 s, no other pull request applied:So both symptoms the description is about are gone here: no slot is left outside the host heap, and the "capped" line does not appear at all — the heap is not capped from the title's point of view, which is a stronger result than the fix I had measured before (#1779 took the same 310,720 to 0 but still logged the cap).
The remaining lines are the ones this pull request is not about, and I would keep them out of the review: the device removal and the missing 1440p
B5G5R5A1_UNORM/format-115 texture are the format ground (#1630 and #1832). Worth knowing when someone measures this branch: onmainthey hide its value, because the boot dies at frame 64 regardless. With those two applied, the boot reaches 2,048 frames and 13,312 draws in 120 s — which is where this change's effect on the world would actually be visible, and where I would look next.A few things I checked that are not in the diff:
emit/host.rs,emit/mod.rsandemit/shader.rs, which is the same corner, and a conflict there would be a reason to sequence the three.infoon this run —view pageswas 0 matches. I would ask for one: it is the difference between "we think it paged" and "the log said so", and this week has shown how much a missing line costs.What I have not reviewed: the 212 lines of
descriptor/host.rsand the paging algebra itself, in any depth. I measured the outcome; the reasoning inside would take a session of its own, and the outcome is the part I can be sure of here.No game data is involved: counts from the title's own log.
Written with an AI assistant.
@0xkn0wh3r3 on GitHub · 2026-11-25 05:59 UTC · original
Thanks both, this is very useful.
@yualk: the missing-buffer case was real. In
907922c, when the stride buffer can't be made, a paged heap is now refused with a warning before its GPU range is recorded. Before, it wrote the page table relative to address 0. On the null descriptors: unplaced pages read slots filled with a Texture2D null. That's the same as every unwritten slot onmaintoday (fill_null), so this PR doesn't change it. Matching the null to the kind a shader reads would be a separate change, and I'd keep it out of this one.@fiestorra: thanks for the 4090 run, and for checking the merges with #2016 and #2027. The probe's line (
host view heaps,paged=true) can come before logging is set up, which is probably why nothing matched.907922cadds a line when the title's heap is made:view heap paged: the host caps view heaps, title slots are placed by page, withslots,host_slots,pagesandfixed. After that,host view heap pages in uselogs the count at each power of two, andno room left in the host view heapwarns if pages run out. A run with #1630 and #1832 applied should show whether the world's pages fit.@iGoldenNinja on GitHub · 2026-11-25 06:06 UTC · original · edited 2026-11-25 06:35 UTC
Independent RTX 5080 hardware check. Driver 617.14, Windows 11 Pro 25H2 build 26200.9974, Ryzen 9 5900X, Rust 1.98.1 MSVC, DXIL 1.9.2609.5,
diag, paging and WARP overrides unset.On clean main
940d32f69b22265690a0b5a15d6ded572ba33baf,dynamic_slots_are_held_until_releasedfailed theNumDescriptors >= HEAP_VIEWSassertion. On clean PR head442632413ce4e8b081b8c4ae4174a51a3682e7f4it passed, along withpages_are_placed_once_on_first_write, the high-virtual-slot translated shader read on hardware and WARP, and the null buffer read. In total, 4 passed, 0 failed or ignored on the PR. These were synthetic fixtures.Test commands and per-fixture outcomes
OpenAI Codex (GPT-6) ran the tests and drafted this report.
Title replay follow-up on RTX 5080 / 617.14 and Windows 11 26200.9974. I adapted
907922conto the NVIDIA fork's7e7bb18diagnostics build with the previous integer-blend and descriptor-read fixes. The local port binds the page table through its own root view to preserve that fork's buffer refresh behavior.The 1,245,184-slot title heap used 1,000,000 physical slots and logged
pages=3906 fixed=1026. The available 2,880 title pages filled during world loading, 150.5 s after player selection, followed by the heap-exhaustion warning. The port retains allocated pages for the heap lifetime. This observes saturation on this fork and route.It reached player control in the prison. The five-minute replay averaged 4.007 presented FPS, 658.550 ms P99, compared with 4.543 FPS and 435.072 ms on the unpaged control. Ten of 54 host samples still reported pending pipelines on the paged run. Wall and ceiling gaps persisted. The run ended deliberately with no DRED device removal logged.
Reproduction, capacity math and timing split
@JurajSimicevic on GitHub · 2026-11-25 06:47 UTC · original · edited 2026-11-25 07:34 UTC
On
main940d32f(RTX 5080) the pages also fill as the world loads; afterwards the device was removed within 1-3 minutes in both runsFollowing @iGoldenNinja's fork replay above, the same on upstream
mainwith no fork. RTX 5080, driver 32.0.16.1742, Windows 11 26200, diag build,VICTORY_D3D12_DRED=1, shader cache and pipeline library made first. Base:940d32f+ #1775's typed-UAV check (to boot, #1753) + #1762 + this PR at907922c. The second run adds #1906 (astrosteveo's rebase01ba70d) and #2098. Nothing skipped. One run each.title slot past the host heap, draws dropped for dynamic slots0x887A0006188 s into the world; DRED stops at #1968's program C (the one #984 addresses)0x887A000670 s into the world; DRED stops at a mesh program's indirect drawstride_tests.rs. With #1906 it is two tests indescriptor/host.rs, and with #2098 the doc comment ofwrite_address. With #1762 + this PR,victory-gpu(148 passed) andvictory-shader(250 passed) have no failures on this RTX 5080. Onmainfive fail here.No game data attached: counters, timings and log warnings only.
AI-assisted (Claude Code).
@0xkn0wh3r3 on GitHub · 2026-11-25 07:21 UTC · original
Thanks both, this is the measurement the PR needed.
What I take from it:
title slot past the host heap, no draws dropped for dynamic slots, and #1968's program A no longer hangs, even without #1906.Whether a different page size helps depends on how full the placed pages are. If most placed pages hold only a few written slots, smaller pages (64 slots) would fit far more of the title. If they're mostly full, the title really writes more than about 740k distinct descriptors, and the next step is reclaiming pages, or growing the title's share at the dynamic region's expense, not resizing them. I'd rather measure than guess. c5d33e8 adds that count:
host view heap pages in useand theno room leftwarning now carrywritten(slots written in pages placed on a write) andof/of_slots(slots in those pages). A newview heap pages written with no room leftlog counts the pages and slots that missed out. If either of you can run it again, the ratio at the warning settles it in one run.On the removals: in the first run DRED stops at #1968's program C, which #984 addresses. In the second it stops at a mesh program's indirect draw. Neither points at a null descriptor read; a null SRV/UAV reads zeros and drops writes. With one run each, though, I agree it can't be ruled out yet.
Thanks for the conflict notes with #1762, #1906 and #2098. I'll resolve them in whichever order those land.
@GaussianGuaicai on GitHub · 2026-11-25 08:05 UTC · original
Independent title smoke test on a Windows Hyper-V guest with an RTX 5070 Ti, using diagnostic builds, the same save snapshot and input, and separate cold caches:
940d32f: Only frame 1 was logged before the 110 s watchdog. The run emitted 262,329title slot past the host heapwarnings.907922c: Paging activated automatically for the 1,245,184-slot title heap on the 1,000,000-slot host heap. I saw zero instances of that warning. The page-use log reported2049 of 3906, and no page exhaustion was logged before exit. The run reached at least frame 1625, then exited on D3D12 device removal.Separately, I compared unmodified
907922cwith the same revision plus a local workaround excluding theR32_UINTtoR9G9B9E5_SHAREDEXPcast. With matched debug-layer and capture settings, the unmodified build reproduced the rejected SRV and device removal. The workaround build reached the first detected world frame and ran until the watchdog without either error in that run, but the captured final image remained dark. The format workaround is not part of this PR.This confirms automatic paging and provides one in-game page-use sample. It does not establish long-run page capacity, playable rendering, or a performance gain.
Test report prepared with assistance from GitHub Copilot.
@sinan-cmyk on GitHub · 2026-11-25 10:09 UTC · original
Offline measurement on a retail dump
Result: no count change against
main.I merged head 40bd2100 onto
main940d32f(clean merge) and ranvictory translate --validate --listonshaders.rpf(1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result withmainprogram by program (25,889 programs). Validated: 23,918 onmain, 23,918 with this PR.No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right.
No shader names or data are included, per the asset policy. AI-assisted (Claude Code).
@Marvisak on GitHub · 2026-11-25 10:46 UTC · original · edited 2026-11-26 07:21 UTC
Automated triage for the maintainers.
Needs work: needs the maintainer's decision. Reviewed head
c23f708. Three small commits since248e4c3:c1d5a3agives a paged heapMIN_DYNAMIC(65,536) dynamic slots instead ofDYNAMIC(HostHeap::new,descriptor/host.rs).PAGED_TITLE_VIEWSfollows, which leaves 3,648 host pages for title slots. latentdev's RTX 4090 peak (16,384 to 32,767) still fits.c2e5ebcaddsVICTORY_VIEW_PAGES_KEEP=1(diagnostics builds only), which skipsPages::take_back.c23f708makes the shared-table test usedynamic_end().The logic reads correctly. passerbyyhx's fixture checked page reuse on hardware.
The open question is the new in-game evidence. bittertea0323's A/B on
248e4c3shows the paged tree drawing the world black where an un-paged tree draws it, and pages are taken back inside the frame loop. Whetherc23f708fixes that needs the run you proposed (defaults andKEEP=1, to the first world frame). Beyond that, a maintainer still has to decide whether to take paging at all. It changes translated shaders and the shader cache key, and it competes with #1751, #1777 and #2461. TheHostHeap::mirrorclash with #2821 also remains.CI: passing.
Generated by Claude Code
@crissuper20 on GitHub · 2026-11-25 11:03 UTC · original
GTX 1650 (Turing, 4 GB, driver 32.0.16.2124), diag build, Series S,
940d32f+ #2016 #1775 #454 #1731, with and without this PR at40bd210, 18 min each, same save and input:paged=true)title slot past the host heapSo on Turing there's no device removal in the world, unlike the 5080 report above. The world image is black on this card with or without the PR. One run each.
AI-assisted (Claude Code); measured on my own machine.
@sinan-cmyk on GitHub · 2026-11-25 11:04 UTC · original
Shader tests on NVIDIA Ada
I ran
cargo test --locked -p victory-shader --libon an RTX 4070 SUPER (Ada, 32-lane waves, driver 32.0.16.1088), the default adapter,VICTORY_WARPunset.main940d32fstride_tests::a_heap_buffer_read_by_element_takes_the_views_stride,stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros,synthetic_tests::gathers_at_a_level_match_the_hardware940d32fa_heap_buffer_read_by_element_takes_the_views_stride,gathers_at_a_level_match_the_hardwareSo on Ada this PR fixes
a_heap_buffer_read_where_no_buffer_view_is_reads_zeros, one of the three NVIDIA failures that #1835 tracks. #2177 fixes the same test, and #2178 fixes the stride one (details in #1835).Offline, on the retail dump, this PR does not change the counts (posted above).
AI-assisted (Claude Code).
@latentdev on GitHub · 2026-11-25 16:04 UTC · original
In-world on an RTX 4090: both capped-heap layouts fill up within minutes
RTX 4090, driver 621.24, Windows 11, title 1.0.2.1, diag build, opening cutscene. I ran this PR and #1779 (
9323a74) onmain940d32f+ #1778 + #1630 + #1832 + #2332 + #2178. The #1779 run also had #233; the runs of this PR didn't.#1779: the title gets 720,896 host slots in blocks of 1,024. "A title view without a host slot" is logged at power-of-two write counts. Its sampled indices range from 390,106 to 1,210,753, and the write count reached 16,777,216 before the run ended. All of the write views of the lighting passes
2dc364df5d3278b8,34fb51b8a0312e82and5cf00dc39042edafthatVICTORY_TRACE_SHADERSlisted wereslot null(23 of 23), as were 2,939 of the 13,100 bindings traced.This PR (40bd210): paging fixes that at first. There are 0 "without a host slot" warnings and 0 null slots among the traced bindings. But all 3,906 host pages are in use within a few minutes, and "view heap pages written with no room left" reaches pages=1024, written≈231,000 (232,002 in one run, 230,748 in another). In a later run with the same overflow, the light-list pass
5cf00dc39042edafread its per-pass root view at slot 1,156,966 as null.My guess is that the title writes fresh descriptors across most of its 1,245,184 slots over a run, so any layout that places on first write and never gives back runs out. Both layouts might hold the live set if they reclaimed blocks or pages not written or read recently. The per-slot read marks from #1962, now on
maintoo, already record which slots shaders read.The lighting outputs stayed at zero with this PR even while no traced slot was null, so the slots aren't the whole story. All of this was on
940d32f.mainhas since gained command-list memory waits (9cc37c5) and placed textures made on read (52d14b1), and I'll rerun this on currentmain.@0xkn0wh3r3 on GitHub · 2026-11-25 18:37 UTC · original
Thanks all. @latentdev, your overflow log settles the question from my last comment. 1,024 refused pages with about 231,000 slots written is about 226 of 256 slots per page, so the pages that miss out are nearly full. Smaller pages wouldn't fit noticeably more. The title really does write fresh descriptors over most of its 1,245,184 slots, and anything that places on first write and never gives back runs out, as you say for both layouts.
So the next step is reclaiming, not resizing. A host page whose slots no shader has read for a while can go back to the free list and its virtual page back to the null page. The per-slot read marks already on
maingive the "read lately" signal. A reclaimed page that's read again just reads null until it's written again. That's the same as today's overflow, but only for stale slots instead of whichever pages came last. I'll look at it on top of this PR. The other open question is when it's safe to recycle a host page while a submitted list may still read it; the retirement fencerelease_retiredalready tracks covers that.@GaussianGuaicai @crissuper20 thanks for the 5070 Ti and Turing runs: 262k and 310k
title slot past the host heapwarnings down to 0. The rejectedR32_UINT→R9G9B9E5_SHAREDEXPSRV and the dark image are separate from this PR. The removal on the 5070 Ti matches that SRV, not the heap. The branch is now rebased onto13f91ca.@passerbyyhx on GitHub · 2026-11-25 19:05 UTC · original
I tested this PR on an NVIDIA GeForce RTX 4090 Laptop GPU (driver 621.14) with Rust 1.98.1 MSVC on Windows 11 (build 26300.9974). I ran
cargo test --offline --locked -p victory-gpu --lib -- --test-threads=1on both revisions. Onmainat13f91ca, 193 tests passed, 2 failed, and 1 was ignored. Both failures,descriptor::host::tests::dynamic_slots_are_held_until_releasedandmemory::tests::lists_share_a_table_and_copies_keep_their_views, passed on the PR at6fbfa4b, where the suite finished with 197 passed, 0 failed, and 1 ignored. A separate run of the descriptor test confirmed via DXGI that D3D12 selected the RTX 4090 Laptop GPU. This was a GPU unit-test run with no game files. I used Codex to run the tests and summarize the results.@passerbyyhx on GitHub · 2026-11-25 19:48 UTC · original
Follow-up from the RTX 4090 Laptop (driver 621.14) on
6fbfa4b: I opened a hardware test against this PR’s head branch. It uses two generated 1×1 textures and reads back both the color and the physical descriptor slot.With two allocatable pages, I closed a list while B was unmapped, placed B before submission, then submitted that same list. The GPU read A red at slot 262919, B green at 263175, and the blue control at 519. With just one allocatable page, the host submission fence stayed at 4 (target 5) across a refused request for B. After I opened a separate CPU gate, the queue completed 5 and the old list read red / transparent black / blue. Retrying after a control-only submission still left B on the null page.
This gives a baseline for testing a future recycler. The outstanding check is whether B can acquire A’s same physical slot after the retirement condition is satisfied. The GPU suite finished with 198 passed, 0 failed, 1 ignored. AI-assisted with Codex.
@passerbyyhx on GitHub · 2026-11-25 20:23 UTC · original
For the cold-page question, I checked which descriptor slot the runtime reports after a translated heap-direct
image_loadon a GeForce RTX 4090 Laptop GPU (621.14). Red A and blue B stayed mapped throughout. Virtual A/B/output slots were519 / 7 / 776, with physical slots262919 / 263175 / 520. All six indices were distinct.reads_since()[519][][519][7]The window followed the original virtual slot and reported repeat use. The newly-read notification fired once per slot in this fixture. B stayed unreported until the shader read it. This gives one signal for choosing cold pages after completed submissions. Safe reuse still needs a fence covering the last work that can use the old mapping. The fixture uses runtime shader translation and page tables with manually bound test root arguments. It exercises no page reassignment.
Reproducer commit, based on the earlier fence fixture. Set
VICTORY_VIEW_PAGES=1and run this test alone, since the bitmap is process-wide:cargo test --locked -p victory-gpu --lib descriptor::host::page_retirement::translated_reads::translated_texture_reports_its_virtual_slot_in_each_read_window -- --exact --ignored --nocapture --test-threads=1The four windows passed in default and diagnostics builds. The default GPU suite passed 198 tests, with 2 ignored. Code and hardware testing assisted by Codex.
@0xkn0wh3r3 on GitHub · 2026-11-25 20:33 UTC · original
@latentdev @JurajSimicevic @iGoldenNinja: a12b972 adds page reclaiming on top of paging, as discussed above.
Could you rerun your setup (diag build; shaders are retranslated automatically) and post these info lines with their counts?
view heap pages unused lately taken back(total,free,in_use)view heap pages placed againno room left in the host view heaporview heap pages written with no room leftstill appearIf those don't appear while
taken backkeeps climbing, the live set fits. Aplaced againcount close totaken backwould mean the age limits are too short.@passerbyyhx thanks for the hardware test on your fork. Your sequence (a list closed while B was unmapped, then B placed before submission, reads B) is the property this relies on: the page table is read when the list runs. A host page taken back is now nulled before it goes back to the free list, so B can take A's physical page once it's free. The unit tests in
descriptor::pagesandhost::tests::view_heap_pages_taken_back_are_placed_again_when_readcover that path on the host heap.Tests:
victory-gpu203 passed, 0 failed (the two NVIDIA heap failures onmainpass here), also withVICTORY_VIEW_PAGES=1. The newviews_read_in_a_paged_view_heap_mark_their_pagespasses on hardware and WARP, and the paged program passes the DXIL validator.@0xkn0wh3r3 on GitHub · 2026-11-25 20:34 UTC · original
@passerbyyhx thanks, that's a useful check that read windows follow the virtual slot. On the fence: reclaiming in a12b972 runs at the point in
Host::executewhere the submission has completed and the next one waits for our lock, the same placetake_reads/make_readrun.executewaits for each submission, so no GPU work that could use the old mapping is in flight when a page is taken back. The page table is read when a list runs, so a list recorded earlier but submitted later sees the null entry or the new placement, never the old host page. The one recorded command that bakes a host handle (the UAV clear) uses a dynamic slot, which is never taken back. Since texture read marks cover only textures, a12b972 also adds per-page read marks set by every paged heap access, and those drive both the age and re-placement.@passerbyyhx on GitHub · 2026-11-25 20:48 UTC · original
Tested
a12b972on a GeForce RTX 4090 Laptop GPU (621.14). B acquired A's former physical page 1027, offset 7, slot 262919. The old command still sampled red from A. This used two generated 1×1 textures, one registered title heap and the normal host direct queue.While the old list was queued, the completed fence stayed at 301 across a refused request for B (target 302). Each aging window used 299 real empty submissions, just over 10 seconds of wall time, and one dispatch at the boundary. We kept the filler pages hot with CPU handle requests. B's green comes from swapping G/B on a view of the live blue control texture. A separate GPU readback echoed the physical page, slot and RGBA. The handoff occurred after the old submission completed.
The diagnostics build emitted these counts in order:
The two overflow messages were intentional. We exhausted all 2,880 allocatable pages, then wrote B and a second virtual page (4095). Only B received a GPU demand and the second page stayed unmapped. These counts describe the synthetic workload. In-game page pressure and the frequency of first-read misses remain open.
Reproducer and PowerShell command · Tested source. The strict case passed in default and diagnostics builds. AI-assisted test design and implementation.
@0xkn0wh3r3 on GitHub · 2026-11-25 21:05 UTC · original
@passerbyyhx thank you, that's the end-to-end check the reclaim needed:
That one null first read is the cost the design accepts for a wrong guess, and your counts line up with the four log lines as intended. How often in-game reads hit a taken-back page is the open question for the title runs.
@aef200 on GitHub · 2026-11-25 22:12 UTC · original
A crash report from an NVIDIA card where the paging itself works, if it helps: the layer faults in
resource::alias_sourceshortly after the paged heap comes up.Setup RTX 4060 Ti 8 GB, driver 32.0.16.2124, Windows 11 26200, Series X profile, diagnostics build of
mainat61bfc77with this PR'sa12b972applied (the patch applied cleanly to main; nothing else changed).The paging starts and reports itself:
48 seconds later the layer faults:
Symbolized from the PDB of that same build:
So the read is a null pointer plus the
0x30field, taken insidealias_sourcewhile a draw binds its indirect arguments - after the heap has been paged. My guess, sincea12b972added page reclaiming:alias_sourceis resolving an alias for a view whose page has just been reclaimed, and the source it looks up is gone.For contrast, on this card the same tree without the PR boots and reaches the world without this fault (everything else about it is the same: 1 fps, the intro cutscene draws, the known
0xC0000005atvictory_image+0x3de6491comes later, minutes in). So this one looks specific to the paged path.I can re-run with any diagnostic switch you would like set, or dump the surrounding log; the run is repeatable in under a minute.
@0xkn0wh3r3 on GitHub · 2026-11-25 22:20 UTC · original
A note for whichever of #2121 and #2821 lands second: they merge cleanly but clash in
HostHeap::mirror.readycheck that skips a slot already made from the same record.maderecord when it takes a page back, so a page placed again is never remade:host::tests::view_heap_pages_taken_back_are_placed_again_when_readfails at "made from the title's record".The fix is to clear
readyfor a page's slots intake_back_pagesand inremakes(crates/victory-gpu/src/descriptor/host.rs). I'll add it to whichever branch lands second.@0xkn0wh3r3 on GitHub · 2026-11-25 22:33 UTC · original
@aef200 thanks, that's a useful report. A repeatable run in under a minute is exactly what's needed to pin it down.
alias_sourcelooks for another title texture in the same memory (TEXTURES_AT, keyed by address) to alias from. The fault is a null-plus-0x30 read inside its search. Page reclaiming in a12b972 doesn't touch title resources orTEXTURES_AT. When it takes a page back it drops the host views and per-slot state, and a page read again is remade from the title's records. So I don't see the link from the code alone yet. Could you help narrow it down?6fbfa4b, the PR's head before reclaiming (git checkout 6fbfa4b, or apply only up to it). If it doesn't fault, reclaiming is involved. If it does, it's paging itself.view heap pages unused lately taken backorview heap pages placed againappear before it, with their counts. Reclaiming only starts once fewer than 1/32 of host pages are free. If neither line appears, no page had been taken back when it faulted.alias_sourceandreadable.closure$1could be the address lookup, thebytesclosure or thefindclosure.A null read at 0x30 suggests a resource pointer or field that is null, rather than a freed one, so the exact line would settle a lot.
@aef200 on GitHub · 2026-11-25 22:44 UTC · original
Answering your three questions, and one of them narrows it: reclaiming was active before the fault.
2. The log lines. Both appear, twice, before the fault, at 22:41:45 and 22:42:14:
"No placed again" line appears separately - the only match for that phrase is inside the same message. So pages were taken back (
131, then134of265), and the fault came after.3. Line numbers. From the PDB of the same build (
61bfc77+ a12b972), offsets 0x22c1d3, 0x238cee, 0x28f2c9, 0x28745c:So
#2is the(View::Shader(resource, _), ResourceType::Srv)arm, the one that callsalias_source(*resource as This)at 1846, and#3isself.tables(list, &t.used, compute).One thing that may matter: I could not reproduce your expectation that
closure$1is one of the three closures inalias_source. In this build it resolves to the closure insidegpu_address's diagnosticcall_once(once.rs:166), and the frame above it iscreate_heap. I also added aplaced.is_null()guard at the top ofalias_sourceand a!r.is_null()filter in itsfind, rebuilt, and it still faults at the samevictory.exe+0x22c1d3, read0x30. So the null being dereferenced is probably notrin that closure.If
0x30is a field offset inResource, the candidates are a null resource pointer reachinggpu_address(itsresource(this)thenr.data()/r.backing) or a null*resourcein theView::Shaderarm feedingalias_source.1. Paging without reclaiming. I have not run
6fbfa4byet; I can build it and run it tonight, and report whether it faults. Say the word and I will also run it with any logging you want around page placement.@0xkn0wh3r3 on GitHub · 2026-11-25 23:06 UTC · original
@aef200 thanks. The take-back lines (131, then 134 of 265) before the fault are the key fact: reclaiming is involved, or at least running.
The symbols look folded.
gpu_address's diagnosticcall_onceclosure and a closure inalias_sourcecan compile to the same machine code, and the linker's identical-code folding then gives them one address. The PDB names one of them, andcreate_heap:715as a caller of a draw-time path doesn't fit either. A build withRUSTFLAGS="-C link-arg=/OPT:NOICF", or thedevprofile with optimisation on, would give frames you can trust. If the faulting frame then really is inalias_sourceorreadable, note thatView::Shadercan legitimately hold a null resource (a null SRV).host_resourcechecks for that andalias_sourcedoesn't, but your null guard should have covered it, so I don't think that's the whole story.Yes please to
6fbfa4btonight. Paging without reclaiming, same save and run, is the cleanest split. If that's clean, could you also runa12b972withRUST_LOG=victory_gpu::descriptor=debug? The last lines before the fault would show whether a page that was taken back is placed again in the same submission that faults.@aef200 on GitHub · 2026-11-25 23:39 UTC · original
Short status on the
6fbfa4brun you asked for, so you are not waiting on it: I cannot get a clean run of it on this card.Two attempts, same result: the process ends about 15 s after start with
0x887A0005(device removed), before any draw happens - the display driver is reset while the first pipelines are made. The second attempt was aftervictory translate --cache --pipelineson that same build (a 4.3 GB cache), and it lasted no longer. So on an RTX 4060 Ti 8 GB that tree cannot reach the world at all, and the crash I would be comparing against never gets a chance to happen.What I can do instead, when I next have the machine:
a12b972withRUSTFLAGS="-C link-arg=/OPT:NOICF"as you suggested, so the frames are not folded, and re-report #0-#2 with real names. That also tells us whether the faulting frame really is inalias_source, since you are right thatcreate_heap:715does not fit a draw-time path.a12b972withRUST_LOG=victory_gpu::descriptor=debugand send the last lines before the fault, to see whether a page taken back is placed again in the same submission.One thing worth knowing for anyone else on a small card: on this machine,
6fbfa4banda12b972differ in whether the run survives startup at all, which may say more about VRAM than about paging -a12b972reaches the world (and faults later, at0x22c1d3), while6fbfa4bnever does.@0xkn0wh3r3 on GitHub · 2026-11-25 23:41 UTC · original
@aef200 thanks for trying it, and for the clear status. Yes to both:
/OPT:NOICFto get real frame names.RUST_LOG=victory_gpu::descriptor=debugfor the last lines before the fault.One change: the PR is now rebased onto current
main(head1503227, on842b0cb; same seven commits, CI green), so please use that rather thana12b972. It also picks up the fixes onmainsince61bfc77.The startup device removal on
6fbfa4bis worth knowing in its own right. It happens while pipelines are made, before any draw, and the two heads translate the same programs except for the page read marks. So it may be VRAM pressure on an 8 GB card rather than paging. If you get a minute, a run of6fbfa4bwithVICTORY_D3D12_DRED=1would show where it stops.@aef200 on GitHub · 2026-11-25 23:51 UTC · original
Started on it, with a timing caveat so you know when to look.
1503227(your rebased head on842b0cb) is built here withRUSTFLAGS="-C link-arg=/OPT:NOICF", release + diagnostics, and the frame symbols now resolve without the folding - I will report #0-#3 with real names once a run faults.The delay is the prewarm: this tree's
translate --cache --pipelinesis a full pass over the pack (27,145 pipelines) and runs at about 7 a second on this machine, so it is roughly an hour.--used-pipelineswould be the shortcut, but it is rejected together with--cache --pipelines, so there is no way to warm only what earlier runs drew with from the CLI as far as I can see.If waiting is not worth it, I can skip the remaining warm and run cold - on
a12b972a cold run still reached the world before faulting, so the descriptor log may come out the same. Your call: I can run it cold in a few minutes, or wait for the warm and have a clean run. Either way the6fbfa4brun withVICTORY_D3D12_DRED=1is queued after it.@0xkn0wh3r3 on GitHub · 2026-11-25 23:53 UTC · original
@aef200 a cold run is fine, no need to wait an hour for the warm.
A likely explanation turned up: upstream fixed this exact path while we were looking.
219878a0, "GPU: a null shader view has no alias source", is onmainand in1503227, but not in61bfc77, the base of your earlier runs. AView::Shaderwith a null resource (a null SRV in a draw's table) reachedalias_sourceand was dereferenced there. That matches the fault inreadable'sView::Shaderarm. Reclaiming plausibly made it likelier, because a page that's taken back and then read again goes through the table path more often.So the most useful result is simply whether
1503227faults at all in the same run. If it doesn't, I'll count that as this. If it still does, the unfolded frames and the descriptor log will show where.@0xkn0wh3r3 on GitHub · 2026-11-26 00:06 UTC · original
Thanks for the re-check. New head
07a132db(rebased onto63bcca4, whose only change isREADME.md, plus one new commit).Edge case in
HostHeap::new: fixed in07a132db. The paged path now caps the title's count, the same way the unpaged path caps at the host's limit (cap plus warning, title slots past it left out):PAGED_TITLE_VIEWS = NULL_BUFFER_VIEW - 1 - DYNAMIC(1,835,005),descriptor/host.rs:150. A larger count is capped athost.rs:178, with the warningpaged view heap capped at 1835005 title slots, before anything is sized from it. So the dynamic slots end below the null buffer views (HEAP_VIEWS - 2and the slot below it), and both still get made. Title slots past the cap get no mirror ("title slot past the host heap",mirror). The title's 1,245,184 slots are well below the cap.host.rs:295) wroteplaced[page]and the page table for pages up to(count + DYNAMIC).div_ceil(PAGE). Withcount + DYNAMIC > HEAP_VIEWSthat is a Vec index panic, and a write past the 8,192 page-table dwords. Also, withcount > HEAP_VIEWSthe stride table (count * 4bytes,host.rs:195) would have run into the page table, which sits atHEAP_VIEWS * 4. With the cap,count <= HEAP_VIEWS, so neither can happen.Placed::host(host.rs:293) andPlaced::written/lost/used(pages.rs:143-162) are all sized by virtual pages (HEAP_VIEWS / PAGE).Pages::slot/place/read/stamplook pages up with.get(), and the stride and mark tables keep at leastHEAP_VIEWSentries.host::tests::a_paged_heap_of_every_slot_shaders_index_is_capped(host.rs:2608). On a paged host, a title heap ofHEAP_VIEWSslots is capped atPAGED_TITLE_VIEWS. The first title/dynamic page, the last dynamic slot and both null buffer views have their pages in the page table, within its 8,192 entries. Every dynamic slot can be taken, and a title slot past the cap has no mirror. Without the cap the test panics inHostHeap::new("the len is 8192 but the index is 8192").cargo test -p victory-gpu --lib: 240 passed, 0 failed, 1 ignored, with and withoutVICTORY_VIEW_PAGES=1(RTX, pages automatically). Clippy with and without--features diagnostics: 0 warnings.cargo xtask policyok.The crash report (aef200): upstream
219878a0, "GPU: a null shader view has no alias source", is in this branch's base (842b0cb, and now63bcca4) but not in61bfc77, which aef200's runs were based on. I read it.alias_sourcenow returns None for a nullplacedbefore it reads the resource through it (resource.rs:1795). That covers the path inreadable's(View::Shader(resource, _), ResourceType::Srv)arm (draw.rs:1918-1921), which hands a null view's resource straight toalias_source.host_resource, called later in the same arm, already returned None for null. One caveat: aef200 wrote that a localplaced.is_null()guard inalias_sourcestill faulted at the same offset, on a build with folded symbols. So it isn't settled that219878a0was this fault. aef200 is running1503227with/OPT:NOICFandRUST_LOG=victory_gpu::descriptor=debug.07a132dbdiffers from it only by the README rebase and the cap, which doesn't apply to a 1,245,184-slot heap, so that run holds for this head. Waiting on that run.The clash with #2821: acknowledged on both PRs. Whichever lands second gets the fix:
take_back_pagesandremakesclear #2821'sreadymarks for the slots of a page taken back or remade.@aef200 on GitHub · 2026-11-26 00:06 UTC · original
1503227does not fault. That answers your question, and I think it closes it.Cold run (no warm - the prewarm was still going, so I stopped it as you said to),
RUSTFLAGS="-C link-arg=/OPT:NOICF", release + diagnostics,RUST_LOG=victory_gpu::descriptor=debug, Series X, same save, same launcher as the runs that faulted:first-chance exception, 0device removedin the log.61bfc77 + a12b972, which faulted at+0x22c1d3in under a minute, twice, at the same address.So the
219878a0reading looks right: aView::Shaderwith a null resource reachedalias_sourceand was dereferenced inreadable'sView::Shaderarm, and the61bfc77base simply did not have that guard. Reclaiming is a plausible amplifier rather than the cause, exactly as you suggested.Two caveats on the run, so you do not over-read it: the picture is not usable here (this card renders the world laggy and largely without draw - it is an 8 GB card on a tree tuned for bigger ones), and I did not reach the scenes that previously faulted with a warm cache, so "does not fault" is over these 10 minutes rather than proven for every path.
If it does fault later in this same session I will send the unfolded frames and the descriptor log; otherwise I consider #2121 clear of the crash we reported.
@latentdev on GitHub · 2026-11-26 00:07 UTC · original
1503227 in-world on an RTX 4090: pages are taken back, but the heap still fills
RTX 4090, driver 621.24, Windows 11, title 1.0.2.1, diag build, opening cutscene. Tree:
main63bcca4+ this PR at 1503227 (a12b972 rebased) + #2178 + #1630 + #1832 + #2332. The only conflict was the cache key inshader_cache.rs; I kept both settings. Since then,07a132dhas added only the count cap, which a 1,245,184-slot heap doesn't reach.I ran it twice. In the first run every shader was translated again because the key changed. The second ran with them cached, and it moved through the scene at about the same pace as my earlier run of 40bd210 (no reclaiming,
main67e8ae1, cached). The numbers below are from the second run. Times count from the world's first frame.view heap pages unused lately taken back:Up to 2:10 the logged passes got back to about the 1/16 target, except at 1:28. At 3:54 the pass took back only 13 pages, and 13 were free.
view heap pages placed againpassed 1,024 at 3:34 and 2,048 at 5:18.Both no-room lines still appear:
no room left in the host view heapat 1:02 (written=576948 of=737280). On 40bd210 it came at 0:18.view heap pages written with no room leftreachedpages=1024 written=192121at 4:15. On 40bd210 it reachedpages=1024 written=228606at 2:10. Here it stayed at 64 pages from 1:17 to 2:49, then climbed again.So reclaiming delays the overflow, by 44 s for the first refusal and about 2 minutes for 1,024 refused pages, but it doesn't prevent it. The first run went the same way: no room at 2:15, 4,111 taken back, and
placed againpast 2,048.The
placed againcount is hard to use for the age-limit question.place_atcounts everylostpage, andslotalso marks a page lost when it's refused room, so the count mixes wrong guesses with refused pages that later found room. Logging the two separately would show which one dominates.Neither run logged
title slot past the host heapor faulted inalias_source(this tree has219878a). The second run ended 6:06 into the world with a device hang. The list stopped at a 1x1x1 dispatch of compute37e19ccb4f889f63, its first command, 5 s after that program was first bound. That's the program from #71.@0xkn0wh3r3 on GitHub · 2026-11-26 00:07 UTC · original
@aef200 thank you, that settles it. More than 10 minutes on
1503227with no fault, against two faults at the same address in under a minute on61bfc77 + a12b972, fits219878a0(a nullView::Shaderreachingalias_source). I'll treat the crash as fixed upstream, with reclaiming as an amplifier, unless it turns up again later in your session.@latentdev thanks, that's the measurement I wanted. Reclaiming delays the overflow (first refusal at 1:02 instead of 0:18, and 1,024 refused pages at 4:15 instead of 2:10) but doesn't prevent it. By 3:54 a pass found only 13 pages old enough, so the set the title uses within the age window is close to the 2,880 title pages. You're right that
placed againmixes two things: pages taken back and read again (wrong guesses), and pages that were refused room and later found it. I'll split that into two counts in the log, so the next run shows whether the age limits are too short or the live set really is bigger than the heap. If it's the latter, no page policy fixes it, and the remaining lever is the dynamic region's 1,024 fixed pages.The device hang at the 1x1x1 dispatch of
37e19ccb4f889f63(#71) looks unrelated to the heap: notitle slot past the host heaplines, and no null reads there.@0xkn0wh3r3 on GitHub · 2026-11-26 00:10 UTC · original
@latentdev done in
6f8b5887. The line keeps its message and itspages=total, and now splits the total:view heap pages placed again: their slots are made from the title's records pages=<total> taken_back=<n> refused=<n> in_use=<n>taken_back: pages reclaiming took back that were then read, written or drawn through again (wrong guesses).refused: pages written when no host page was free, which found room later.A page taken back and then refused room counts as
taken_back. It's logged when either count reaches a power of two. Iftaken_backdominates, the age limits are too short; ifrefuseddoes, the live set is bigger than the heap.@passerbyyhx on GitHub · 2026-11-26 00:17 UTC · original
The two placement counters on
6f8b5887distinguished the two cases in a three-step GPU readback on an RTX 4090 Laptop (621.14). A, then B, then A again occupied physical page 1027, offset 7, slot 262919. The shader returned the page and slot alongside the color.pages=1 taken_back=0 refused=1pages=2 taken_back=1 refused=1The separate total of pages evicted rose from 1 to 2. Before either handoff, the old gated list completed at fence 302 and still read red / transparent black / blue. B used a G/B-swapped view of the blue control texture.
I first checked the A-to-B transfer at the legal limit added in
07a132db, then ran this round trip on6f8b5887at both 1,048,576 and 1,835,005 title slots. The control stayed blue at physical slot 519 in the first layout (2,880 allocatable pages) and slot 772 in the second (2,879). This synthetic workload deliberately produced one event of each kind. The in-game ratio and the interaction with #2821 remain open.Reproducer and PowerShell command · Tested source.
@0xkn0wh3r3 on GitHub · 2026-11-26 00:19 UTC · original
@passerbyyhx thanks, that's a clean check of both counts. A page refused room shows up as
refused=1. A page taken back and then demanded again shows up astaken_back=1, on the same physical page each time, with the old list still reading what it was recorded against. It's also useful to have it at the new cap (1,835,005 title slots, 2,879 allocatable pages) as well as below it. The in-game ratio is what the next title run should show.@DenRakEiw on GitHub · 2026-11-25 05:36 UTC · original · approved these changes
Verified locally merged onto
origin/main(940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090, Rust 1.98.1 MSVC):cargo test -p victory-gpu— 144 passed, 0 failed (2 ignored) on NVIDIA RTX 5090! Directly resolves both NVIDIA 1M view-heap cap failures (dynamic_slots_are_held_until_releasedandlists_share_a_table_and_copies_keep_their_views) onmain940d32f!cargo test -p victory-shader --lib emit::stride_tests::— 6 passed, 1 failed (directly fixesa_heap_buffer_read_where_no_buffer_view_is_reads_zeroson RTX 5090; the 1 remaining failure,a_heap_buffer_read_by_element_takes_the_views_stride, is the separate NVIDIA structured-view issue covered by #1887)cargo clippy -p victory-gpu -p victory-shader -p victory --all-targets— 0 warningscargo xtask policy— ok (183 files ok)Huge NVIDIA/Blackwell compatibility win. Looks great!
AI-assisted (Gemini 4 Neon).
@catminou4 on GitHub · 2026-11-25 05:49 UTC · original · reviewed
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
View heaps paged when a host caps below shader-indexed slots — paging for capped heaps; mixed gpu+shader+apps, Windows-only overall.
@passerbyyhx on GitHub · 2026-11-26 03:30 UTC · original · edited 2026-11-26 03:38 UTC
I checked the two ready-mark invalidations you described for #2821 using an RTX 4090 Laptop (621.14) and two generated textures. This is an independent combination of #2121 at
6f8b5887and #2821 atcfbb10a4, withturn_pagestaking the registry write lock. The GPU reported physical page 1027, offset 7 (slot 262919) for A → B → A in all four runs.readyonly intake_back_pagesreadyonly inremakesB uses a green/blue-swapped view of the blue control texture. The control stayed blue, and the old submission read red for A after the gated fence advanced from 301 to 302. Clearing on remake covered both a previously refused page (B) and a previously evicted page (A). With both clears the full round trip passed at 1,048,576 and 1,835,005 title slots.
Combined baseline and fixture · Tested integration change
To reproduce on the integration branch, set
VICTORY_VIEW_PAGES=1and runcargo test --locked -p victory-gpu --lib --features diagnostics expect_reuse_ -- --ignored --nocapture --test-threads=1.I also ran the same test directly on your integrated demo at
fe85e996with its production code unchanged. At both 1,048,576 and 1,835,005 title slots, the old submission read A as red when the gated fence advanced from 301 to 302. B then read green at physical slot 262919, and A read red after getting that same slot back. The control stayed blue throughout.@0xkn0wh3r3 on GitHub · 2026-11-26 03:33 UTC · original
@passerbyyhx thanks, that settles the #2821 fix on hardware. Clearing
readyon remake alone already covers both cases, B (refused, then placed) and A (taken back, then placed again), and the clear intake_back_pagesisn't enough on its own. I'll apply both clears in whichever of #2121 and #2821 lands second: the remake clear is the one that matters, and the take-back clear keeps a stale mark from surviving in between. Good to have the round trip at both 1,048,576 and 1,835,005 title slots.@kawaii-shakal on GitHub · 2026-11-26 03:52 UTC · original · edited 2026-11-26 03:55 UTC
Measured on an RTX 5070 Ti (Windows 11, native D3D12): GTA VI in the world at 0.5–2 fps, about 20 submissions a frame, with this PR merged together with #2821.
no room left in the host view heap: slots of further pages read null pages=3906 written=588695 of=737280. Meshes that read those slots render as dark silhouettes.MIN_AGE_SUBMISSIONS(300) andMIN_AGE(10 s). At this frame rate that means about 15 frames, or roughly 30 s, without use. Every page the title writes counts as used, so by the time room runs out no page qualifies, and fresh descriptors read null for that whole stretch.This change helped here. When a write has been refused for lack of a host page since the previous take-back,
take_backalso takes pages unused for 16 submissions, with no minimum time, up to the high-water mark as before. The stricter ages are still tried first. Over runs of similar length, the count of pages written with no room fell from ≥2048 to ≥512 (the log reports powers of two). It is not a full fix: the working set still overflows the 3,906 host pages at times.diff (pages.rs, with a test)
I can open this as a PR against this branch if that is easier.
🤖 Generated with Claude Code (Claude Opus 5.5)
@0xkn0wh3r3 on GitHub · 2026-11-26 03:59 UTC · original
@kawaii-shakal thanks for the run and the idea. You're right about the strict ages: at 0.5–2 fps nothing the title writes gets to 300 submissions and 10 s unused before room runs out, so the gap reads null. I've added a relaxed pass in
979e3a7(my own implementation, credited in the commit), so there's no need for a separate PR.What it does (
descriptor/pages.rs):take_backpass clears it, whether that pass takes anything or not, so pressure lasts one pass.PRESSED_AGE_SUBMISSIONSsubmissions qualify too, with no time minimum, least recently used first, up to the high-water mark. Pages old by the strict ages are always older than that, so they still go first. With no refused write since the last pass, the strict path is unchanged.view heap pages unused lately taken backline now logsrelaxed=(whether that pass took pages younger than the strict ages) andrelaxed_total=(pages taken that way so far).Where it differs from yours: I used 32 submissions, not 16. At about 20 submissions a frame, 16 can take back a page the previous frame read before this frame gets to it. That page then comes back the next time it's read, after one submission of null reads. 32 keeps anything read every frame. If your logs show 16 doing clearly better, it's a one-line change.
Tests: no refusal keeps young pages however full the heap is; after a refusal, pages unused for more than 32 submissions are taken oldest first while one used exactly 32 submissions ago and one used now stay; and the relaxed pass applies once.
cargo test -p victory-gpu --libpasses withVICTORY_VIEW_PAGES=1. Without it, one test that also fails on main on this card fails here too. Clippy is clean with and withoutdiagnostics.Could you rerun on
979e3a7, with #2821 as before? The numbers that would help: when (if ever)no room left in the host view heapfirst shows up, the highestview heap pages written with no room leftpages=, therelaxed_total=on the last take-back line, and thetaken_back=againstrefused=onview heap pages placed again. A hightaken_backthere would mean the relaxed pass is guessing wrong. If you can, also run 16 against 32 on the same save.@passerbyyhx on GitHub · 2026-11-26 04:09 UTC · original
On an RTX 4090 Laptop (621.14), I compared the pressure pass in
979e3a7with its parent6f8b5887, using a full heap, generated textures and the runtime direct queue. This tests #2121 on its own.The shader reported physical page 1027, offset 7 (slot 262919) on all three placements, at both 1,048,576 and 1,835,005 title slots. The control stayed blue. The gated old list read red / transparent black / blue after the queue fence advanced from 32 to 33. The four transfer windows, including idle submissions and pixel readbacks, each took under 60 ms. The logs showed
relaxed_total=1then2and placementtaken_back/refusedof0/1then1/1.On the parent, the identical short-window test at 1,048,576 slots still read red / transparent black / blue after the new refusal at age 34. A retained 262919, B stayed unmapped and zero pages had been reclaimed.
The original long-window round trip also passed on the new head at both capacities with the filler pages refreshed every 16 submissions. At the old 100-submission refresh interval, the pressure pass correctly reclaimed 244 filler pages while the GPU-marked A stayed resident.
Reproducer and exact test names. The in-game comparison of 16 versus 32 on the same save remains open. AI-assisted with Codex.
@0xkn0wh3r3 on GitHub · 2026-11-26 04:12 UTC · original
@passerbyyhx thanks, that's the boundary exactly as intended:
It's also good to see that at the old 100-submission refresh interval, the pass took the 244 stale filler pages while the GPU-marked A stayed resident. The in-game comparison of 16 against 32 is what's left, for whoever runs the title next.
@kawaii-shakal on GitHub · 2026-11-26 04:13 UTC · original
@0xkn0wh3r3 reran on
979e3a7with #2821 as before (RTX 5070 Ti, Windows 11, native D3D12, same save, ~2.5 min each, into the world). I also ran a build withPRESSED_AGE_SUBMISSIONS = 16, nothing else changed.979e3a7)no room left in the host view heapwritten=684297 of=737280)written=682450 of=737280)view heap pages written with no room leftpages=256pages=512total=2074 relaxed_total=243total=4158 relaxed_total=2440view heap pages placed againpages=1357 taken_back=1325 refused=32pages=2126 taken_back=2048 refused=7832 is clearly better here. 16 took ten times as many pages through the relaxed pass and had more of them read again. Your reasoning about pages the previous frame read holds. Keep 32.
The take-back is still high with 32, though:
taken_back=1325of 2074 pages taken. Only 243 of those came from the relaxed pass, so most re-placed pages were taken by the strict ages. At this frame rate the working set seems to be just above the 3,906 host pages, and whatever goes gets read again.(For comparison, my 16-submission version from the earlier comment reached
pages=512on this counter, and before any relaxed pass it waspages=2048.)🤖 Generated with Claude Code (Claude Opus 5.5)
@0xkn0wh3r3 on GitHub · 2026-11-26 04:15 UTC · original
@kawaii-shakal thanks for running both on the same save. 32 stays: 16 took ten times as many pages through the relaxed pass (2,440 against 243), more of them were read again, and it peaked at 512 pages refused room against 256.
Your reading of the rest matches mine. 1,325 of the 2,074 pages taken back were read again, and most of those were taken by the strict ages, so at this frame rate the working set sits just above the 3,906 host pages. No page policy fixes that. The one lever left is the dynamic region: its 1,024 host pages (262,144 slots, for tables made fresh for each draw) are placed for good, before any title page. If the title's draws use far fewer dynamic slots than that, shrinking the region on paged hosts would hand the difference to title pages. I'll look at how many dynamic slots a world frame actually holds and report back here.
@0xkn0wh3r3 on GitHub · 2026-11-26 04:19 UTC · original
As promised:
248e4c3adds a log line that answers the dynamic-region question, with no change in behaviour:view heap dynamic slots in use peak=<n> of=<dynamic slots> run=<n>peak: the most dynamic slots held at once.of: the size of the region (262,144 on a paged host).run: the longest table any draw asked for.It's logged when either value passes a power of two. @kawaii-shakal @latentdev, if a run on
248e4c3(with #2821) could report the highestpeak=andrun=reached in the world, that settles it. If the peak stays well under 262,144, the region can shrink on paged hosts and the freed pages go to title slots.@latentdev on GitHub · 2026-11-26 05:40 UTC · original
248e4c3with #2821 on the RTX 4090:peakunder 32,768,run256Same setup as before:
main63bcca4+ #1630 + #1832 + #2332 + #2178, this PR at248e4c3merged with #2821 atcfbb10a, a warm cache, and 9 minutes of the opening cutscene. To build with #2821,turn_pagesneededSHADER_HEAPS.write()instead of.lock(), because the registry is anRwLockthere. passerbyyhx's combined branch does the same. Times count from the world's first frame.view heap dynamic slots in use:peakpassed 8,192 at the world's first frame and 16,384 at 3:36. It didn't reach 32,768 (of=262144).runstayed at 256 throughout.On this card the dynamic region never had more than an eighth of its slots in use. A quarter of it (65,536) would still leave room to spare, and would free 768 pages for title slots.
The rest:
total=8294by 7:20, withrelaxed_total=6586. From 3:35 on, every logged pass was relaxed and took back 244 pages.pages=4121 taken_back=4096 refused=25at 5:28.no room left in the host view heapappeared at 1:11.view heap pages written with no room leftonly reachedpages=256 written=41182(5:11). On6f8b588it reachedpages=2048 written=404408by 6:49 in my last run, so the relaxed pass cuts the overflow by about eight times here.@0xkn0wh3r3 on GitHub · 2026-11-26 05:56 UTC · original
Thank you, this is the run I needed. One correction to how the take-back line reads, then a switch for the experiment you suggested.
free=244is logged after the take-back, not before it. The line is written once the host pages are given back, and 244 is exactly the high-water mark (3,906 / 16). A take-back only starts when fewer than 3,906 / 32 = 122 host pages are free (LOW_WATERindescriptor/pages.rs), and it takes back just enough to reach 244. So these take-backs were driven by shortage: the title's share of the heap (3,906 − 1,026 fixed = 2,880 pages) didn't hold what the world was using at the time. That fits your reading that the pages taken back are ones the frame loop is still cycling through.Switch for the experiment:
c2e5ebc3addsVICTORY_VIEW_PAGES_KEEP=1(diagnostics builds). With it, no page is taken back, and a write past the free pages is refused as before the take-back, withview heap pages written with no room leftwarnings. If the world is still black with the switch, the take-back isn't the cause and your three other candidates are where to look. If the black changes (for example to stable missing patches instead of flicker), it's the page budget.Three numbers from that run (or the next one) would decide what to change:
relaxed=/relaxed_total=fields on theview heap pages unused lately taken backlines. They say whether pages younger than the strict ages (300 submissions and 10 s) were taken, meaning the 32-submission rule after a refused write.view heap dynamic slots in useline'speak=andrun=. The fixed region keeps 1,024 pages for dynamic slots. If the title's peak is far below that, the region can shrink and give the title several hundred more pages, which is the lever I'd pull first.in_use=269on the lastplaced againline: 153 pages taken back from 2,636 shouldn't leave 269, so could you check whether that's 2,690 or similar?@0xkn0wh3r3 on GitHub · 2026-11-26 06:04 UTC · original
That settles the dynamic range.
c1d5a3a2gives a paged heapMIN_DYNAMIC(65,536) dynamic slots instead ofDYNAMIC, the same as a capped heap already gets onmainwithout paging. That's 258 fixed pages and 3,648 for the title, your third row. Thepeak=line is logged when the peak passes a power of two, so 8,192 means a peak between 8,192 and 16,383: at least 4× headroom.PAGED_TITLE_VIEWSfollows it, so the cap on title slots rises by 196,608. The title's 1,245,184 was below the cap either way.Thanks for flagging that the reduced rows never reached the world: agreed, they show the take-back gone in menus, not a correct world. A run that gets past the pipeline compile (a warm library from the full-range build should carry over, since the pipelines are the same) would show whether 3,648 pages hold the world's live set. If
taken backlines still show up there,relaxed=on them tells whether the strict ages or the 32-submission rule took them.VICTORY_VIEW_PAGES_KEEP=1fromc2e5ebc3is still there to rule the take-back in or out.@passerbyyhx on GitHub · 2026-11-26 06:23 UTC · original
Tested the 65,536-slot dynamic region on Windows with an RTX 4090 Laptop (driver 621.14). On
c23f7085, both title heap layouts completed A → B → A on physical slot 66,311 (page 259, offset 7), using synthetic textures and the runtime D3D12 queue.The unaligned cap costs one additional fixed page. In both layouts, the old submission read red / transparent black / blue (A / B / control) after its fence completed. On each transfer the first demand read transparent black. After retry, B read green from slot 66,311. When A got that same slot back, it read red. The control stayed blue throughout.
Both the short pressure window (fence 32 → 33) and the strict window (301 → 302) passed. With
VICTORY_VIEW_PAGES_KEEP=1, renewed pressure and strict aging both left A red and B unmapped, with zero pages reclaimed or restored. I also repeated the short-window round trip on the integrated demo11a24276with #2821 and #3052. Both layouts gave the same slot and colors. This covers descriptor reuse on this device. Whether 3,648 pages hold the world’s live set still needs the in-game measurement.Fixture on the PR head · Fixture on the integrated demo
@0xkn0wh3r3 on GitHub · 2026-11-26 06:24 UTC · original
Thanks, this checks the reuse path on
c23f7085directly: the old submission keeps its colors after the take-back, the page goes back and forth on one host page, andVICTORY_VIEW_PAGES_KEEP=1leaves everything placed.On the extra fixed page at the cap: it only costs anything for a title whose slot count isn't a multiple of 256. This title's 1,245,184 slots are exactly 4,864 pages, so its dynamic range starts on a page boundary and it gets all 3,648. I've left the cap as it is.
@0xkn0wh3r3 on GitHub · 2026-11-26 06:27 UTC · original
Thanks, the A/B against the un-paged tree is the comparison that was missing. Both changes it calls for are on the current head,
c23f7085, which is past the248e4c3you ran:c1d5a3a2): 258 fixed pages instead of 1,026, so 3,648 for the title.VICTORY_VIEW_PAGES_KEEP=1(c2e5ebc3, diagnostics builds): turns the take-back off entirely. It goes further than raising the age: nothing is ever taken back, and a write past the free pages is refused instead.So the run that would settle it is
c23f7085to the caption card, once with defaults and once withVICTORY_VIEW_PAGES_KEEP=1. The pipeline library cache should be warm from your full-range runs, since the pipelines don't change, so it shouldn't need the long compile your earlier reduced-range runs hit. If the caption card draws with the defaults, the page budget was the problem. If it only draws withKEEP=1, the take-back still fires in the world even with 3,648 pages, and therelaxed=field on those lines will say which age rule took them.@nathanbzrr on GitHub · 2026-11-26 07:48 UTC · original · requested changes
Reviewed
c23f708on Windows 11 (AMD Radeon RX 7600 + D3D12 Debug + WARP):cargo run -p xtask --locked -- policy:192 files okcargo clippy -p victory-gpu --all-targets --locked -- -D warnings(default &--all-features): cleancargo test -p victory-gpu --lib --locked descriptor -- --test-threads=1(RX 7600):36 passed; 0 failedVICTORY_D3D12_DEBUG=1 cargo test -p victory-gpu --features diagnostics --lib --locked descriptor -- --test-threads=1(RX 7600 + Debug):36 passed; 0 failedVICTORY_D3D12_WARP=1 VICTORY_D3D12_DEBUG=1 cargo test -p victory-gpu --features diagnostics --lib --locked descriptor -- --test-threads=1(WARP + Debug):36 passed; 0 failedTwo issues found in the reclaim/remake interaction need fixes before merge:
Host::execute(crates/victory-gpu/src/host.rs:1466-1472) runsmake_readbeforeturn_pages, lettingremakes()null out newly recreated placed textures.In
Host::execute,crate::descriptor::make_read(&read)runs beforecrate::descriptor::turn_pages(...). When a previously taken-back page (made[index] == key, slot replaced bypage_nulls,keptcleared) is read again in the same submission:make_readfirst recreates the placed texture in that slot;turn_pages->place_page->remakes()then fillsmade[first..last]withREMAKE, andsync_slotscallsmirror(..., false)wherelater = !for_draw && is_placed_texture(&view)(true), overwriting placed textures back tonull_forright aftermake_readpopulated them.view_heap_pages_taken_back_are_placed_again_when_read(crates/victory-gpu/src/host.rs:506-520) invokesturn_pagesbeforemake_read, which masks theHost::executeordering. Runningturn_pagesbeforemake_read(or preserving placed textures created/kept for the current submission acrossremakes) and testing theHost::executeorder would fix this.needs_remake()(crates/victory-gpu/src/descriptor/host.rs:1067) returnsfalsefor non-texture views on taken-back pages.take_back_pagesreplaces the host page withpage_nullswhile leavingmade[index] == key. When a taken-back page is later placed again viaremake_pages(descriptor.rs:212, 236, 244) ->sync_slots->mirror(..., true),needs_remake()short-circuits when!for_draw || !is_texture(&view). As a result,View::Constant(CBVs), bufferView::Shader(SRVs), and non-textureView::Unordered(UAVs) whose records still matchkeyare skipped instead of being rebuilt into the newly placed host page.(Side note on
descriptor/pages.rs:41, 394: under pressurePRESSED_AGE_SUBMISSIONS = 32evicts pages unused for 32 submissions regardless ofMIN_AGE = 10s, so any long-lived descriptor not re-bound/stamped every frame can still churn if the heap stays nearLOW_WATER.)AI-assisted; synthetic tests only, no game files.
@pickles976 on GitHub · 2026-11-26 08:13 UTC · original
Wine/NVIDIA offscreen verification:19 owner checks pass; reclamation recovery probe fails
Exact production head
c23f70853f3c9887642b0345b127aa08498eef14, reference checkoutVIctory-pr2121. Linux6.17, Wine11.0, RTX4060 Laptop8GiB, NVIDIA590.48.1, DXVK3.1.1. Diagnostic-relaxed vkd3d-proton3.2.02576c0b4adfae4a+: assertions disabled and allocator/list vtable identity checks removed, null checks retained. Not stock-runtime certification. Rust1.98.1 Windows-MSVC target, one test thread,9GiB/512MiB scope, bounded180s gate/120s probe deadlines.VICTORY_VIEW_PAGESandVICTORY_VIEW_PAGES_KEEPunset: automatic paging on this capped NVIDIA host. Local changes: selected test skip guards made fail-closed, plus the isolated synthetic probe below; production code unchanged. Shared build freshness verified with explicit compilation from this checkout.descriptor::pages::testspaged_view_heapshader dispatch/readback pairFresh GPU builds9.42s/8.87s and shader test builds5.95s/5.99s. No skipped device accepted in the selected hardware gates. DXGI explicitly reports
WARP not supported, returning first hardware adapter, so the WARP-labelled passes are not independent software coverage. Logs:verify-pr2121-paging-gates.log,verify-pr2121-paging-dispatch.logunder.compat-runtime/logs/.Reproduced: three null submissions, not one
A local
memory::tests::a_reclaimed_texture_returns_after_one_missed_submissionprobe uses synthetic cs_5_1 HLSL, a real placed RGBA8 texture, the production page table, real GPU-written slot/page feedback,HostList::defer_heap, and the normalHost::executecompletion path. It does not inject feedback from the CPU or draintake_readsbetween submissions.[17,34,51,255]at logical slot44325 (page173, offset37); mark its texture used for the normal upload path.Observed GPU readbacks:
Expected under the documented one-submission miss: the second post-reclaim read returns the texel. The assertion fails:
left:[0,0,0,0],right:[17,34,51,255]. 0passed/1failed,0.70s, fresh5.78s compile. Logverify-pr2121-texture-recovery-uploaded.log. An earlier probe omitted normal heap upload tracking and failed its pre-reclaim control; that result is not counted as a reclamation defect.Code path consistent with this readback:
HostHeap::take_back_pagesdrops the texture without invalidating its already-seen slot read. On the first miss,Host::executeconsumes slot reads beforeturn_pages; restoration leaves the placed texture lazy and queuesforget_read. The next completion drains that queued forget and clears the new GPU bit; only another submission gets a fresh slot-read event. The existing owner lifecycle fixture manually drainstake_readsbefore injecting its next slot mark, so it misses this order.Separate allocation-failure hazard (source inspection, not fault-injection tested)
page_nullscreation atdescriptor/host.rs:312-329is fallible.take_back_pagesskips its clearing copy when that option is absent (950-960) but still returns the physical pages toPages::free(963).Pages::place_atreuses them (289-306); a never-before-placed logical page is not queued for a whole-page remake. [INFERENCE] Untouched offsets can retain old resource descriptors instead of nulls. Reclamation should not release an uncleared page for reuse. I did not manufacture memory exhaustion to test this branch.No title run, world-entry, FPS or full-suite claim for this PR. Both concerns are in the take-back path; the owner-provided diagnostics
VICTORY_VIEW_PAGES_KEEP=1avoids that path by construction, but its runtime control is not yet verified here. Do not interpret the19 passing gates as reclamation correctness certification.AI use: omp, harness model
openai-codex/gpt-6-astra, ran the checks and drafted this report. No upstream code changes or assets attached.@0xkn0wh3r3 on GitHub · 2026-11-26 08:31 UTC · original
Thanks @nathanbzrr and @pickles976. All four are addressed in
fedb38d(head ofgpu/view-heap-pages), each with a test that failed before it, except where noted.1.
make_readbeforeturn_pagesnulls the texture it just made (@nathanbzrr). Real.make_read'smirror(.., true)placed the page and made the texture, thenturn_pages->remakes()filled the whole page withREMAKE, andsync_slots->mirror(.., false)nulled the placed texture again. A draw that placed a page while recording hit the same thing in the heap sync before the submission. I kept the order and changedremakes()instead: it marks only slots that hold no view. A slot made since the page was placed keeps its view, so both orders work. A view written to the scratch page (no room for its page) used to be kept as if made, so it now holds nothing and is still remade. Tests:host::tests::view_heap_pages_placed_by_a_read_keep_the_texture_made_for_it(make_readthenturn_pages, as inHost::execute; failed before) anddraw::tests::a_placed_texture_in_a_page_taken_back_is_made_after_one_submission_reads_it(throughHost::executeitself).2.
needs_remake()skips non-texture views on taken-back pages (@nathanbzrr). The path you describe doesn't happen.remake_pagescallsremakes()beforesync_slots, and that fillsmade[first..last]withREMAKE(descriptor/host.rs,remakes). Somade[index] != keyandmirrorrebuilds the slot without consultingneeds_remake;sync_slotsalso passesfor_draw = false. The new test confirms it: a CBV, a buffer SRV and a buffer UAV in a page taken back are all made again when a read mark places the page, and that part passed before the fix. The gap is in the draw path.table_entry->mirror(.., true)on a CBV or buffer view in a page taken back returned early (made == key, not a texture), so the page stayed unplaced and the draw read null until the read marks placed it after the submission. Only textures placed it at once. Now a draw binding any slot of a taken-back page places it, and the heap sync makes its slots before the submission. Test:host::tests::view_heap_pages_taken_back_make_their_buffer_views_again(the draw step failed before, "placed again for the draw").A. Placed texture back after three null submissions (@pickles976). Real, and the same mechanism you describe.
take_back_pagesleft the slot's read "seen", so the first read after take-back wasn't taken. The remake then queuedforget_read, andtake_readscleared the forgotten marks after the next submission had run, which erased that submission's read too. Now taking a page back forgets its slots' read marks, andHost::executeclears forgotten marks before the submission runs (shadow::forget_reads_now), not after. The draw test above runs your sequence: read twice, take back, then four submissions throughHost::execute, with a compute shader setting the slot and page read bits on the GPU and no draining between them. Whether the slot holds its texture after each:[false, false, true, true]before,[true, true, true, true]after. So only the first submission after the take-back reads null. Evicted textures that are read again get the same one-submission gain.B.
page_nullscreation failing (@pickles976). Real on inspection. Without the null page,take_back_pagesskipped the clear but still put the host pages on the free list. It now returns early whenpage_nulls(or the host) is missing, so such a heap takes nothing back and refuses writes past the free pages, as before take-back existed. No test: a CPU-only 256-descriptor heap can't be made to fail here.Side note (32 submissions).
PRESSED_AGE_SUBMISSIONSapplies only on the first pass after a write found no free host page (pressedis set by the refused write and cleared by that pass). Without a refusal only the strict ages apply (300 submissions and 10 s). For an A/B,VICTORY_VIEW_PAGES_KEEP=1(diagnostics builds) turns take-back off.Tests (RTX 5070 Ti, which pages):
cargo test -p victory-gpu --lib250 passed, 0 failed. With--features diagnostics, 263 passed;frame::tests::waits_end_on_ticks_and_count_frames(flaky) andpipeline::placed_uav_tests::placed_uav_dispatch_writes_its_texturefailed, and both fail atc23f708too. Clippy with and without diagnostics: 0 warnings.cargo xtask policyok.@bittertea0323: the draw-path gap in point 2 fits what you saw in the world. A draw binding a constant buffer or buffer view in a page that had been taken back read null until a later submission placed the page; only textures placed it at once. With take-back running inside the frame loop, that leaves a lot of a frame reading null. If you can, rerun
fedb38dto the caption card with defaults, and once withVICTORY_VIEW_PAGES_KEEP=1for comparison.@passerbyyhx on GitHub · 2026-11-26 08:32 UTC · original
I checked both points in the review of
c23f7085on Windows with an RTX 4090 Laptop and WARP.Placed texture. In both directions of A → B → A on physical slot 66311 (4090), the original placed SRV read transparent black on three consecutive GPU submissions and green on the fourth. The neighboring committed SRV was already yellow on the second. This matches the 4060 Laptop result. The earlier round trip I reported here used ordinary committed SRVs and did not exercise this path.
Author-branch fix #8 gets the placed texture back on the second submission on both adapters, including after a demand made while no page was free. Simply moving page restoration ahead of view creation still left the returning A black until the fourth demand. A third, unread placed slot stayed lazy throughout. Failing fixture · Passing fixture.
Buffers. Once the page is placed again, the remake pass rebuilds all three physical buffer slots. The author-branch regression #7 reads separate CBV/SRV values and writes them with a per-dispatch tag through the UAV. A and B got their own data on all three legs and the guard word stayed intact. With the page-wide
REMAKEfill removed the test went red before dispatch 3 on both devices. This fixture supplies a page mark explicitly. Separately, the existing translated compute test passed and observed GPU page marks for both its table UAV and direct SRV.These are synthetic readbacks. The 4070 SUPER default vs.
VICTORY_VIEW_PAGES_KEEP=1caption-card comparison is still open.@0xkn0wh3r3 on GitHub · 2026-11-26 08:33 UTC · original
Thanks, that matches what
fedb38dfixes. Your readings were againstc23f708, before it. Both points are covered there with this repo's own tests:Host::executeclears forgotten marks before the submission instead of after.remakes()also leaves slots made since the page was placed alone.draw::tests::a_placed_texture_in_a_page_taken_back_is_made_after_one_submission_reads_itdrivesHost::executewith GPU-set read bits:[false, false, true, true]before the fix, alltrueafter.host::tests::view_heap_pages_taken_back_make_their_buffer_views_again.I wrote the fix separately, so the fork PRs aren't needed for this. A rerun of your fixtures against
fedb38dwould confirm it on the 4090 and WARP.@passerbyyhx on GitHub · 2026-11-26 08:47 UTC · original
I reran the fixtures on
fedb38dbas requested, on the RTX 4090 Laptop (native paging) and Microsoft WARP (forced paging). Your three new tests passed on both. Our CBV/SRV/UAV physical readback also passed on both, and I closed fork PR #7.One full-heap case remains. With no physical page free before the demand, A → B → A reused slot 66311. In both directions the placed SRV returned black, black, green, green. The committed neighbor returned black, yellow, yellow, yellow, and the third, unread placed slot stayed lazy. After D1 the page was mapped but only the committed view was held. After D2 both were held. With A resident from the outset, the placed view already read green on D2. These are successive GPU pixel readbacks, including the distinct case where B had previously been sampled while no page was free and its title record was never rewritten.
On the same fixtures, moving
make_readafterturn_pagesfixed the freshly written B and returning A, but the B that had already been sampled with no space still needed D3. Re-arming that one mark when a placed texture had gone to scratch recovered B on D2 as well. The results per adapter were 0/2 onfedb38db, 1/2 with just the reorder, 2/2 with both changes. Unchanged production plus fixtures · Passing fixtures.The standalone two-file follow-up applies directly on top of your fix. I updated the existing fork PR #8 to contain just that diff. This synthetic test does not establish what happens at the 4070 SUPER caption card.
@passerbyyhx on GitHub · 2026-11-26 09:10 UTC · original
Two additional controls distinguish descriptor restoration from a late texture upload in the full-heap result above. On unchanged
fedb38db, three outputs in the same D2 submission were black through the recovering slot, yellow through its ordinary neighbor, and green through a permanently resident alias of the very same placed texture. In a separate run without the alias, I changed the title texel from green to blue while A was unmapped, without rewriting its descriptor. The upload count advanced on D1 on both versions. A returned black, black, blue, blue on the author head and black, blue, blue, blue with the two-file follow-up. RTX 4090 Laptop and WARP agreed, with and without the early no-space demand. Reproducible alias and changed-texel controls.We also found a separate change in the eviction read window. H2 sampled yellow through slot 561 and still held that live resource. If H1 retired a page containing its own record at 561,
fedb38dbreturned only slot 7 for the window. If H1 lacked that record or retired a different page, the result was[7, 561]. Onc23f7085, and with the single-file window fix, all three cases returned[7, 561]and the H2 resource. This checks the input to the eviction decision. Actual eviction and game impact were not measured.Combining the two follow-ups in one binary passed both placed-texture cases and the independent two-heap case on each adapter (3/3 on each).
@0xkn0wh3r3 on GitHub · 2026-11-26 09:17 UTC · original
@passerbyyhx thanks for the full-heap case and the eviction-window regression, both are fixed in
0bc5edb. We wrote the fix and the tests ourselves rather than taking your fork PRs (0xkn0wh3r3/VIctory#8 and #9), so those can be closed.Full heap. The cause was as you found:
make_readran beforeturn_pages, so with no page free the texture went to the scratch page, and the remake of the page placed right after left it lazy again. Three changes:Host::executenow takes the read marks, turns pages, then makes the views read. That's safe sincefedb38d, because the remake leaves made slots alone.Tests run through
Host::execute. Each of D1..D4 is a submission whose compute shader sets the slot and page read bits; the value is whether the slot holds its view after each submission, sotrueafter D1 means it reads correctly from D2:fedb38d:(false, true), (true, true), (true, true), (true, true). Now:(true, true)x4. A placed texture in the page that no shader reads stays unmade.fedb38d:false, false, false, false; in this test nothing else asks for room, so the page is never placed. With only the reorder and the read pressure:false, true, true, true. Now:truex4.Eviction window. Read marks are one bit per slot for every heap, so a take-back in H1 cleared H2's read of the same slot. Marks are still forgotten at take-back, which keeps the one-submission recovery. Any set bit that a forget clears is now kept for
reads_since, so it still counts as a read for eviction. This applies to every forget path, not just take-back.draw::tests::a_page_taken_back_keeps_another_heaps_read_of_its_slot_for_evictionuses two paged heaps with placed textures at the same slot, marks the second heap's read and slot 7's, then has the first heap take its page back.reads_sincereturns[7]atfedb38dand both slots now, and it names the second heap's texture.cargo test -p victory-gpu --lib: 254 passed (NVIDIA, which pages view heaps). With diagnostics, onlyplaced_uav_dispatch_writes_its_texturefails, as it does atfedb38d. Clippy both ways is clean andcargo xtask policypasses.@passerbyyhx on GitHub · 2026-11-26 09:28 UTC · original
Thanks for fixing both cases. I verified
0bc5edbdon an RTX 4090 Laptop with native paging and Microsoft WARP with forced paging, then closed fork PRs #8 and #9 as requested.With the physical pool full, both directions of A → B → A reused slot 66311. B returned transparent black on its first submission and green on its second. In a separate run I changed A’s texel from green to blue while its descriptor was unmapped. On the way back, A returned transparent black on its first submission and the new blue on its second, with its committed neighbor yellow. Both adapters agreed. Fresh-texel fixture.
The two-heap eviction window retained H2’s sampled slot 561 and its live owner with each of the three H1 controls, including retiring H1’s overlapping record. The second drain was empty in all three cases.
I also isolated the new read-only pressure condition by consuming the earlier refused-write signal before measuring. At age 32 a GPU demand for B still read null and left A mapped. A fresh demand at age 33 reclaimed the slot, and the following read was green. With an empty submission at 33, A stayed mapped until a fresh demand at 34. No new title descriptor writes in either measurement. Read-pressure boundary fixture.
@pickles976 on GitHub · 2026-11-26 11:05 UTC · original
Re-verified on
0bc5edb(Wine 11.0/Linux 6.17, RTX 4060 Laptop 8 GB, NVIDIA 590.48.1, DXVK 3.1.1): the reclamation recovery window I reported atc23f7085(#2121, three null submissions) is fixed. Same probe, unchanged: real placed RGBA8 texture, real GPU-written slot/page readback marks,HostList::defer_heap+ the normal texture upload path, forced reclaim viaset_page_water(u32::MAX, u32::MAX)+ 400 idle-lockedtake_back_pagesticks, four submissions throughHost::executewith notake_readsdraining between them.GPU texels after reclamation,
c23f7085→0bc5edb:My local
samples[1] == texelassertion — the exact condition that failed atc23f7085— now passes 1/1 in 0.69 s after a fresh 9.01 s compile. The rest of the battery also passes:descriptor::pages::tests12/12 (grown by one on this head), the paged-heap cap fixture (now asserting thePAGED_TITLE_VIEWSclamp), dynamic-slot accounting, your take-back/remake fixture,lists_share_a_table_and_copies_keep_their_views, the missed-submission copies pair, and the threestride_testsdispatch/readbacks — 23 checks, 0 failures, logverify-pr2121-fixed-recovery.log/verify-pr2121-fixed-gates.log(kept locally with the probe).Your four new take-back tests (
view_heap_pages_taken_back_make_their_buffer_views_again,a_placed_texture_in_a_page_taken_back_is_made_after_one_submission_reads_it,a_page_taken_back_keeps_another_heaps_read_of_its_slot_for_eviction, and the read-back remake) all pass on this host too.Environment caveats, unchanged from the first report: locally built diagnostic-relaxed vkd3d-proton 3.2.0 (
2576c0b4adfae4a+; assertions disabled, allocator/listfrom_ifacevtable identity checks removed, null checks kept) — not stock-runtime certification; skip guards in the battery made fail-closed locally; one test thread; 9 GiB/512 MiB cgroup scope. DXGI under Wine reports "WARP not supported, returning first hardware adapter", so any WARP-labelled run here is the NVIDIA adapter, not independent software coverage. No title run, world-entry, or FPS claim for this PR; the probe and the fail-closed guard edits remain local to my checkout.AI use: omp, harness model
openai-codex/gpt-6-astra, ran the checks and drafted this report. No upstream code changes or assets attached.@0xkn0wh3r3 on GitHub · 2026-11-26 11:32 UTC · original
Agreed that the capped split is the control this needs, on one host and scene. Two things about the paged rows, though:
Both paged measurements predate the fixes that bear on them. Your black world was at
248e4c3. Since then,fedb38dfixed draws that bound a constant buffer or buffer view in a taken-back page: they read null until a later submission placed the page, and only textures placed it at once.0bc5edbfixed placed textures coming back a submission late with no free page. Both happen inside the frame loop and leave parts of a frame null. @kawaii-shakal's 0.5–2 fps was at979e3a7, before the smaller dynamic range (c1d5a3a2: 3,648 title pages instead of 2,880) and before both review fixes. So none of the paged numbers in your table are from the current head.How many slots the title writes differs between runs. Your run logged
written=92113, and a 393,215-slot title region holds that. But @kawaii-shakal's run on the RTX 5070 Ti loggedno room left in the host view heapat 2:02 withwritten=684297 of=737280: 684,297 distinct title slots written by then. A capped heap drops every write past its title region; on main that's the 310,720title slot past the host heaplines you measured. Paging keeps them as long as the live set fits. Which approach is right depends on which of those two cases the world usually is, and the 92k run alone can't settle that.The run that would decide it, on your host and scene:
0bc5edb(or later), once with defaults and once withVICTORY_VIEW_PAGES_KEEP=1, against your capped split. Please include thehost view heap pages in use ... written=lines, so we can see how many slots that scene writes. If paging at0bc5edbstill loses to the capped split there, that's a clear result, and I'd rather know it.github-bot referenced this pull request2026-11-26 14:48:35 +00:00
@latentdev on GitHub · 2026-11-26 19:13 UTC · original · edited 2026-11-26 19:37 UTC
In the title on an RTX 4090: your commits since
07a132dremove most of our black framesOur NVIDIA tree had carried #2121 at 1503227. Today I updated it with the 07a132d..0bc5edb diff:
979e3a7,c1d5a3a,fedb38d,0bc5edband the rest, plus 07a132d's count cap. The tree ismain63bcca4plus #439, #2312, #3102, #2821, #2178 and others. Nothing else changed between the runs below, which used the same start, warm caches and unattended runs into the opening cutscene.Before (1503227, four runs).
no room left in the host view heap.view heap pages written with no room leftgrows topages=2048 written=378905.a black frame after a frame that was not). In the window shot they alternate lit, black, lit.vertex 0309a446e1a48352,pixel 4f4ec7b16673362f) that reads the scene through a heap slot written for the frame (e.g. 1,177,174).After (
0bc5edb, two runs).no room leftline at all;view heap dynamic slots in use peak=8192 of=65536;view heap pages placed again ... pages=16384 taken_back=16384 refused=0;no room leftat 49 s, followed bywritten with no room left pages=2 written=161;For comparison, the fxceless fork holds this shot steady on this card: 126 captured world frames, none dark, even slowed to 2 fps.
One note for anyone combining this with #2175/#2465-style bitmaps in video memory: three of the new tests plant read marks in the bitmap's CPU mapping before a submission. With the bitmap in VRAM, the submission's read-back overwrites that mapping, so in such a tree they fail for that reason only:
a_placed_texture_read_with_no_page_free_is_made_after_one_submissionview_heap_pages_taken_back_make_their_buffer_views_againview_heap_slots_written_with_no_room_are_made_when_their_page_is_placedOn your branch (
0bc5edb) all three pass on the 4090.@Jineggegg on GitHub · 2026-11-26 19:51 UTC · original
Two small follow-ups on
0bc5edb, as author PRs:a_placed_texture_read_with_no_page_free_is_made_after_one_submissioncan fail in a parallel run when another test's read marks page 3 during its setup (reproduced on0bc5edbwith one foreign read inserted in its setup:placed againgets host page 260, not 259, on an RTX 5090 and on WARP). The fixture now sets up its pressure underwithout_submissionson pages no other fixture uses. Test-only.RTX 5090, driver 621.14, Windows 11 build 26300, in-box WARP 10.0.26100.9818,
dxil.dll1.9.2609.5, Rust 1.98.1.Synthetic tests only, no game data. AI-assisted (Claude Code); the runs are from my machine.
🤖 Generated with Claude Code
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.