GPU: give the root signature test the host's root parameter layout #95
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!95
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/95/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?
@martingouv on GitHub · 2026-11-24 00:26 UTC · original
martingouv:fix-root-param-test→main· +15 −14 · 1 files · 1 commits · closed without mergingroot::tests::host_serialized_blobs_create_root_signaturesfails on a cleanmain(35b054e) on my machine withE_INVALIDARGfromserialize.Cause
The test built
D3D12_ROOT_PARAMETERby hand as five packedu32s (20 bytes). The host's struct is 32 bytes: the union is 8-aligned (its descriptor-table arm holds a pointer), so it sits at offset 8, andShaderVisibilityat offset 24. The host therefore read register space 1, zero constants, and a visibility from 4 bytes past the end of the struct, so the test passed or failed depending on what was on the stack.Fix
Use the
windowscrate'sD3D12_ROOT_PARAMETERin the test. The test only; no runtime code changes.Tested
cargo test --workspacepasses on Windows 11, RTX 5060 Ti, NVIDIA driver 621.24 (the failure is a CPU-side serialization issue, not driver-specific). No game files involved.AI-assisted (Claude Code).
🤖 Generated with Claude Code
@lordon1a on GitHub · 2026-11-24 00:40 UTC · original
Verified
f0d41db41on Windows 11 (x86_64-pc-windows-gnullvm,rustc 1.100.0, applied cleanly tomain@35b054ec0): pass (cargo xtask policy: 150 files ok;cargo test -p victory-gpu: 39 passed, 0 failed).Heads-up: this makes the exact same change to
crates/victory-gpu/src/root.rsas earlier open PR #36 (apart from the one-line comment). AI-assisted.@DaviTostes on GitHub · 2026-11-24 00:50 UTC · original
Tested
f0d41dbunder 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: 36 passed, 3 failed; the three failures are the environment-only ones frommain(argument_clamp_builds,a_rejected_blob_gives_an_empty_library, #128'sVirtualQueryupload skip).root::tests::host_serialized_blobs_create_root_signaturesis ok here both before and after this change: vkd3d-proton accepts the malformed 20-byte parameter blob, so this environment cannot reproduce theE_INVALIDARGyou see on Windows. The layout fix is still right; the failing case apparently needs a real driver's blob validation.No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
Pull request closed