[PATCH vkd3d 10/10] vkd3d: Return S_OK from ID3D12CommandQueue::GetClockCalibration().
Conor McCarthy
cmccarthy at codeweavers.com
Fri Sep 17 10:37:08 CDT 2021
UE4, at least in Psychonauts 2, catches failure of this function.
vkd3d-proton at the current head (2b13d06f) sets the timestamps to
zero when not compiled in Windows.
Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
---
libs/vkd3d/command.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index fc06f28d..2e81feba 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -6146,10 +6146,14 @@ static HRESULT STDMETHODCALLTYPE d3d12_command_queue_GetTimestampFrequency(ID3D1
static HRESULT STDMETHODCALLTYPE d3d12_command_queue_GetClockCalibration(ID3D12CommandQueue *iface,
UINT64 *gpu_timestamp, UINT64 *cpu_timestamp)
{
- FIXME("iface %p, gpu_timestamp %p, cpu_timestamp %p stub!\n",
+ TRACE("iface %p, gpu_timestamp %p, cpu_timestamp %p.\n",
iface, gpu_timestamp, cpu_timestamp);
- return E_NOTIMPL;
+ WARN("Setting timestamps to zero.\n");
+ *gpu_timestamp = 0;
+ *cpu_timestamp = 0;
+
+ return S_OK;
}
static D3D12_COMMAND_QUEUE_DESC * STDMETHODCALLTYPE d3d12_command_queue_GetDesc(ID3D12CommandQueue *iface,
--
2.32.0
More information about the wine-devel
mailing list