GPU: bound the null sampler staging heap #83
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!83
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-83"
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?
@FIocker on GitHub · 2026-11-24 00:19 UTC · original
FIocker:gpu/null-sampler-staging-heap→main· +28 −5 · 1 files · 1 commits · openThe heap initializer uses a CPU-only staging heap to copy null descriptors. It used the view-heap batch size (65,536 descriptors) for samplers too. A host can accept the shader-visible sampler heap and reject that temporary heap, leaving the shader-visible slots undefined.
Use the portable sampler limit to size each sampler batch. If initialization fails, report the error and stop before exposing the heap. This change is independent of the refusal-triggered sampler capacity fallback in #74 and applies to portable-sized heaps as well. Refs #65.
The new synthetic test requires successful initialization of a portable-sized sampler heap when the test has a D3D12 device. It passed on Windows WARP with
VICTORY_D3D12_WARP=1 cargo test -p victory-gpu --locked --features diagnostics portable_sampler_null_fill_fits_the_host_limit. The asset policy passed.@lordon1a on GitHub · 2026-11-24 00:38 UTC · original
Verified
d8f063b04on Windows 11 (x86_64-pc-windows-gnullvm,rustc 1.100.0, applied cleanly tomain@35b054ec0): pass.cargo xtask policy: 150 files okcargo test -p victory-gpu: 40 passed, 0 failed (includingportable_sampler_null_fill_fits_the_host_limiton Intel Iris Xe).Small edge-case note: in
fill_null, iftotal == 0(e.g. a zero-slot sampler heap),block_countbecomes0andCreateDescriptorHeap(NumDescriptors: 0)will fail (E_INVALIDARG), which now causesHostHeap::newto returnNonedue to the addedreturn None;at line 134. Addingif total == 0 { return Ok(()); }at the top offill_nullavoids that edge case.AI-assisted.
@DaviTostes on GitHub · 2026-11-24 00:49 UTC · original
Tested
d8f063bunder 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.victory_gpu: 37 passed, 3 failed — this PR adds one test (36 → 37).main(argument_clamp_builds,a_rejected_blob_gives_an_empty_library, and #128'sVirtualQueryupload skip), not this PR.No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
@DaviTostes on GitHub · 2026-11-24 00:51 UTC · original
Merged with #86 (
a80eb17+d8f063b): the textual merge succeeds, but the result does not compile — the two PRs disagree onHostHeap::new's return type:So at least one of #83 / #86 / #74 / #100 needs to pick up the chosen
HostHeap::newsignature before they can coexist; on its own #83 is 37 passed / 3 environment-only failures under Wine (see above). This is the same convergence the #65 family needs anyway.No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
@Marvisak on GitHub · 2026-11-25 00:16 UTC · original
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-gpu/src/descriptor/host.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.