From cc6bce59b07189697a060ce025b26889af7fb782 Mon Sep 17 00:00:00 2001 From: Jianhua Wu Date: Wed, 31 May 2023 17:23:42 +0800 Subject: [PATCH] d3d12: Add D3D12PIXEventsReplaceBlock and D3D12PIXGetThreadInfo stub to fix failing to load DirectML.dll If we use vkd3d-proton in an application with DirectML enabled. The program will error out Entry Point Not Found. The procedure entry point D3D12PIXEventsReplaceBlock/D3D12PIXGetThreadInfo could not be located in the dynamic link library C:\Windows\SYSTEM32\DirectML.dll And the DirectML.dll will be unloaded. Signed-off-by: Jianhua Wu --- libs/d3d12/d3d12.def | 3 +++ libs/d3d12/main.c | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/libs/d3d12/d3d12.def b/libs/d3d12/d3d12.def index 9b560c62e3..97733bbd46 100644 --- a/libs/d3d12/d3d12.def +++ b/libs/d3d12/d3d12.def @@ -9,3 +9,6 @@ EXPORTS D3D12EnableExperimentalFeatures D3D12SerializeRootSignature D3D12SerializeVersionedRootSignature + + D3D12PIXEventsReplaceBlock + D3D12PIXGetThreadInfo diff --git a/libs/d3d12/main.c b/libs/d3d12/main.c index 6b74301fc6..cb36536a65 100644 --- a/libs/d3d12/main.c +++ b/libs/d3d12/main.c @@ -206,3 +206,15 @@ HRESULT WINAPI DLLEXPORT D3D12GetInterface(REFCLSID rcslid, REFIID iid, void **d return E_NOINTERFACE; return IVKD3DCoreInterface_GetInterface(core, rcslid, iid, debug); } + +HRESULT WINAPI DLLEXPORT D3D12PIXEventsReplaceBlock() +{ + FIXME("stub!\n"); + return E_NOTIMPL; +} + +HRESULT WINAPI DLLEXPORT D3D12PIXGetThreadInfo() +{ + FIXME("stub!\n"); + return E_NOTIMPL; +}