GPU: fences answer for ID3D12Fence1 as documented #1562
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!1562
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1562/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?
@BastienRodz on GitHub · 2026-11-24 19:12 UTC · original
BastienRodz:gpu/fence1-iid→main· +41 −1 · 1 files · 1 commits · merged 2026-11-25 00:23 UTCWhat's wrong
crates/victory-gpu/src/fence.rsalready implementsID3D12Fence1::GetCreationFlagsat vtable slot 11 (0x58), butFENCE_IIDSonly containsID3D12FenceandPAGEABLE_IIDS. CallingID3D12Device::CreateFenceorIUnknown::QueryInterfacewithIID_ID3D12Fence1(433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a) fails withE_NOINTERFACE(0x80004002) and writes null, contrary to Microsoft'sID3D12Fence1documentation (ID3D12Fence1).What the fix does
ID3D12Fence1(433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a) toFENCE_IIDSincrates/victory-gpu/src/fence.rs(keepingID3D12Fenceat index0).fence::tests::fence1_interface_is_created_and_queriedverifying direct creation asID3D12Fence1,GetCreationFlagsat slot0x58, andQueryInterfacefromID3D12FencetoID3D12Fence1.Tests
fence::tests::fence1_interface_is_created_and_queried(does not depend on a host D3D12 device).main(ffe310e) before the fix:x86_64-pc-windows-msvc, tests run under Wine):cargo xwin test -p victory-gpu --target x86_64-pc-windows-msvc: 51 passed, 0 failed, 1 ignored (fence1_interface_is_created_and_queriedpasses).cargo xwin clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings: pass.cargo xwin clippy --workspace --all-targets --all-features --locked --target x86_64-pc-windows-msvc -- -D warnings: pass.cargo xtask policy: pass (asset policy: 154 files ok).rustfmt --edition 2024 --check crates/victory-gpu/src/fence.rs: pass.windows-latestwith the upstream CI's commands (clippy-D warningswith and without--all-features, thencargo test --workspace --locked), everything passes;victory-gpu51 passed, 0 failed: https://github.com/BastienRodz/VIctory/actions/runs/45467227051Not tested: a title that asks for
ID3D12Fence1(none is known to; Grand Theft Auto VI reaches the world without it).Fixes #1561.
No game data used. AI-assisted: found and implemented with Gemini 4 Neon, reviewed and verified with Claude Code.
🤖 Generated with Claude Code