GPU: CreateFence and QueryInterface reject ID3D12Fence1 with E_NOINTERFACE #1561
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#1561
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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
What's wrong
Microsoft's
ID3D12Fence1reference (ID3D12Fence1 interface) documents:crates/victory-gpu/src/fence.rsalready implementsID3D12Fence1::GetCreationFlagsat vtable slot 11 (0x58), and its table comment listsfence 1:Because
ID3D12Fence1(433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a) is absent fromFENCE_IIDS, bothfence::create(ID3D12Device::CreateFence) andfence::query(IUnknown::QueryInterface) reject it:ID3D12Device::CreateFence(3, 0x5, __uuidof(ID3D12Fence1), &out)S_OK(0),outreceives the fence, andGetCreationFlags()returns0x5.E_NOINTERFACE(0x80004002/-2147467262) andoutis set to null.fence->QueryInterface(__uuidof(ID3D12Fence1), &out)S_OK(0),outreceives the same fence pointer.E_NOINTERFACE(0x80004002) andoutis set to null.Impact
A title or engine layer that creates its fences as
ID3D12Fence1, or queries one to callGetCreationFlags, getsE_NOINTERFACEand no fence, even though the method is already wired. No log so far shows Grand Theft Auto VI doing this (it reaches the world), so this matters for other callers of the documented interface, not for a known failure.Fix
Add
ID3D12Fence1's GUID (433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a) toFENCE_IIDSincrates/victory-gpu/src/fence.rs, and add a synthetic unit test covering bothCreateFenceandQueryInterfacewithID3D12Fence1as well asGetCreationFlagsat slot0x58.A fix with a test is ready; PR to follow.
No game data used. AI-assisted: found with Gemini 4 Neon, reviewed with Claude Code.