GPU: fences answer for ID3D12Fence1 as documented #1561
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1562"
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?
Imported from Marvisak/VIctory. Originally posted by BastienRodz on 2026-11-24T19:12:25Z.
What'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
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T19:30:41Z.
Review: APPROVED
Verified locally merged onto
origin/main(Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC):cargo test -p victory-gpu— 51 passed, 0 failed (1 ignored) on both RTX 5090 hardware andVICTORY_D3D12_WARP=1(includingfence1_interface_is_created_and_queried)cargo clippy -p victory-gpu --all-targets— 0 warningscargo xtask policy— okClean
ID3D12Fence1QI/creation support with unit test coverage. Looks good.AI-assisted (Gemini 4 Neon).