Win10 D3DKMTCreateSynchronizationObject2 function fails to create global shared monitor fence on WDDM 2.0+ environment

lambert liu 0 Reputation points
2024-03-06T12:42:52.68+00:00

How can I resolve the issue of the D3DKMTCreateSynchronizationObject2 function failing to create a global shared monitor fence on Win10 with WDDM 2.0+ environment? When I try this operation, it fails with return value 0xC000000D, while the successful operation returns 0. Here are the argument details for both operations:

For the successful operation:

D3DKMT_CREATESYNCHRONIZATIONOBJECT2 arg={0}
arg.hDevice = device_handle;
arg.Info.Type = D3DDDI_MONITORED_FENCE;
arg.Flags.Shared = 1;
arg.Flags.NtSecuritySharing = 1;
NTSTATUS ret = D3DKMTCreateSynchronizationObject2(arg);

For the failed operation:

D3DKMT_CREATESYNCHRONIZATIONOBJECT2 arg={0}
arg.hDevice = device_handle;
arg.Info.Type = D3DDDI_MONITORED_FENCE;
arg.Flags.Shared = 1;
NTSTATUS ret = D3DKMTCreateSynchronizationObject2(arg);
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,619 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,748 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,592 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,543 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,168 questions
{count} votes

1 answer

Sort by: Most helpful
  1. lambert liu 0 Reputation points
    2024-03-08T08:25:25.34+00:00

    it seems weird, still not work work...

    0 comments No comments