GPU: report the view heap sizes when the host caps one #35
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!35
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/35/head"
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?
@WallasSCRIPTS on GitHub · 2026-11-23 23:28 UTC · original
WallasSCRIPTS:gpu/view-heap-past-report→main· +92 −2 · 2 files · 1 commits · closed without mergingRelates to #16 and #11.
What
When the host cannot make a view heap as large as the title asked for, it
caps it and keeps
PORTABLE_VIEWS - DYNAMICslots. The warning named onlythe resulting size, so the number of title slots lost was invisible. This
reports three numbers at creation: what the title asked for, what the host
made, and the difference.
The earlier version of this PR also reported out-of-range reads from
mirror(). Onmain,mirror()already logs the highest past-heap slot,and #21 remaps the root tables that reach past the cap. Two reports of the
same reads would overlap, so that part is gone. One report, one place.
Doc corrections
docs/view-heap-limit.mdnow reflects #21 landing: root tables are madeafresh in the dynamic area,
State::tablesdoes that when a table holds aconstant buffer or an entry past the host heap (there is no 16-descriptor
rule), and #16 is the RTX 5070 Ti report, not the RX 7600 this was built on.
The sampler heap's 2,048-entry limit is left for a separate issue.
Verification
Static review only; no NVIDIA host here.
mainat97c78d1, after #21 landed.cargo check -p victory-gpu --all-targets: clean.cargo test -p victory-gpu: 36 passed, 0 failed.rustfmt --edition 2024clean; the file haspre-existing formatting drift elsewhere.
@Sunkiller-qc on GitHub · 2026-11-23 23:46 UTC · original
Thanks, the heap-creation report (asked for / made / lost) is useful. Since #21 landed,
mirror()already logs the highest past-heap slot (maindescriptor/host.rs:312), so this conflicts and the two reports would overlap. Picking one would help. A few things indocs/view-heap-limit.mdlook outdated or off: lines 14-15 say nothing remaps, but #21 now remaps tables; line 25 saysdraw::tablescopies "tables holding more than 16 descriptors", but it makes tables afresh when they hold a CBV or reach past the cap (there's no 16-descriptor rule); and line 68 puts the "machine that filed #16" as an RX 7600, while the PR text says #16 is an RTX 5070 Ti. The note that a sampler heap over 2,048 makesHostHeap::newreturnNoneis a good catch and might deserve its own issue. Static review, not built or run.@WallasSCRIPTS on GitHub · 2026-11-24 00:02 UTC · original
Picked one: dropped the per-read report and kept the creation-time sizes
(asked for / made / lost).
mirror()onmainstays the single report forpast-heap slots.
Rebased onto
97c78d1after #21 landed. The doc now says root tables areremapped, describes
State::tablescorrectly (CBV or a past-cap entry, nodescriptor-count rule), and attributes #16 to the RTX 5070 Ti. The
sampler-heap > 2,048 failure will go in its own issue.
cargo check -p victory-gpu --all-targetsclean,cargo test -p victory-gpu36 passed. Static only, as you noted — no NVIDIA host here to see the line
fire. Thanks for the review.
@DaviTostes on GitHub · 2026-11-24 00:58 UTC · original
Tested
df40f86under Wine 11.22 + vkd3d-proton 3.1 on Arch Linux x86_64 (AMD RX 9060 XT, RADV 26.3.1), Windows build withcargo xwin ... --target x86_64-pc-windows-msvc: pass, no regression.\n\n-victory_gpu: 36 passed, 3 failed — the same three environment-only failures asmain(argument_clamp_builds,a_rejected_blob_gives_an_empty_library, #128'sVirtualQueryupload skip).\n\nNo game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).@Sunkiller-qc on GitHub · 2026-11-24 01:05 UTC · original
Thanks, the new version reads well, and the doc matches main now.
One small heads-up: if #135 lands, the capped heap keeps
PORTABLE_VIEWS - DYNAMIC_CAPPEDtitle slots, whilemade = PORTABLE_VIEWS - extra(descriptor/host.rs:97) still usesDYNAMIC, so the logged numbers would be off. Whichever merges second should adjust that line.Static review, not built or run.
@WallasSCRIPTS on GitHub · 2026-11-24 01:36 UTC · original
Superseded by #21 (merged), which makes tables past a capped host view heap afresh: the hang this diagnosed is now fixed rather than logged, so the reporting here has nothing left to say on a capped heap.
This branch is more than a hundred commits behind main. Its one piece nothing else carries is
docs/view-heap-limit.md, the reasoning about SM 6.6 directly indexed heaps (ResourceDescriptorHeap): two heaps do not merge into one index space, so the remap that works for root descriptor tables cannot serve indices past the cap there. Nothing hits that path today; the note stands if something does. Closing rather than rebasing a log line.Pull request closed