GPU test: the pair region is not where a capped heap puts it #3286
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!3286
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3286"
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?
@zzm1234560621-prog on GitHub · 2026-11-26 15:59 UTC · original
zzm1234560621-prog:test/memory-dynamic-slots→main· +28 −1 · 2 files · 1 commits · openWhat
memory::tests::lists_share_a_table_and_copies_keep_their_viewsasserted that the two copies' view slots lie at>= 1 << 18, i.e. past a dynamic region ofDYNAMIC. On a host that caps shader-visible heaps at 1,000,000 the heap takesMIN_DYNAMIC(1 << 16) — and its pair region ends below where it starts, soHostHeap::pairnever uses it and hands out dynamic slots instead:The test then failed on an index assertion while the reads above it — the point of the test, one table shared and each list's own views kept — were all correct.
The layout the test described is not one a capped heap is required to have, so it now asserts what the design does guarantee:
a pair per copy);#[cfg(test)]has_pair_region()next tofirst_pair_slot(), both of which name the boundary instead of spelling1 << 18out.The read assertions are untouched.
Measured
Intel Arc (Xe-LPG, driver 32.0.101.6127), 1M cap,
main63bcca4:lists_share_a_table_and_copies_keep_their_viewspast the dynamic slots)cargo test -p victory-gpu --libThe one remaining failure is
descriptor::host::tests::dynamic_slots_are_held_until_released, which #3191 fixes — the two together make the suite green on a capped host.cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: clean.cargo xtask policy: 191 files ok.Not in this PR
HEAP_VIEWSitself and whether a capped host should offer the larger dynamic range: that is #3178, and it is a design question, not a test one. This PR only stops a test from encoding one particular answer to it.No game files. AI-assisted (Claude).
@Dukestar69 on GitHub · 2026-11-26 16:10 UTC · original · approved these changes
Reviewed the diff and verified locally on Windows 11 x64 (RTX 5090 + WARP):
views.has_pair_region()and asserting>= views.first_pair_slot()when present (instead of hardcoding1 << 18) cleanly fixeslists_share_a_table_and_copies_keep_their_viewson 1M-capped NVIDIA heaps while keeping the pair-region assertion intact on uncapped heaps.cargo test -p victory-gpu --lib memory::tests::lists_share_a_table_and_copies_keep_their_views -- --test-threads=1(RTX 5090): 1 passed, 0 failed.VICTORY_FORCE_WARP=1 cargo test -p victory-gpu --lib memory::tests::lists_share_a_table_and_copies_keep_their_views -- --test-threads=1(WARP): 1 passed, 0 failed.cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@oni-swr on GitHub · 2026-11-26 16:42 UTC · original
WARP verification report (test report only, no code changes)
b83c07d563bcca43(control); WARP software adapter forced withVICTORY_WARP=1 VICTORY_D3D12_WARP=1,--features diagnostics, d3d10warp.dll 10.0.26100.9818; dxil.dll 1.8.2502.11 (Windows Kit 10.0.26100.0, viaVICTORY_DXIL). No physical GPU. Synthetic tests only, no game data.cargo test -p victory-gpu --lib --features diagnostics --no-run -j 4, then the test binary with--exact memory::tests::lists_share_a_table_and_copies_keep_their_views --test-threads 1, then the whole lib suite (7 runs per side).memory::tests::lists_share_a_table_and_copies_keep_their_views: passes on the PR (1 passed, 0.36 s).>= 1 << 18assertion holds. This PR's capped-heap failure (Intel Arc, 1M cap) is therefore not reproducible here; WARP only shows that the changed test still passes when the pair region exists.victory-gpulib suite, 7 runs on each side: both haveframe::tests::waits_end_on_ticks_and_count_framesfailing every run (also alone, on the PR and on main; unrelated).descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait,pipeline::placed_uav_tests::placed_uav_dispatch_writes_its_texture), PR run 3 had 1 (views_bound_...); main run 7 had 1 (shadow::tests::partial_refresh_under_marked_range_updates_saved_bytes). Each passes alone on both sides, so these are parallel-run flakes unrelated to the PR.AI use: Claude Code (Claude Sonnet 5.5)
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.