vkd3d: Implement ID3D12CommandQueue_GetClockCalibration().

Extends vkd3d_instance_create_info with struct vkd3d_host_time_domain_info
to allow host ticks per second to be changed from the default 10000000.

Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Conor McCarthy
2022-01-17 14:14:22 +10:00
committed by Alexandre Julliard
parent 440286e9de
commit 66bc2672a1
6 changed files with 150 additions and 6 deletions

View File

@@ -36023,19 +36023,15 @@ static void test_clock_calibration(void)
return;
hr = ID3D12CommandQueue_GetClockCalibration(context.queue, &gpu_times[0], &cpu_times[0]);
todo
ok(hr == S_OK, "Failed to retrieve calibrated timestamps, hr %#x.\n", hr);
vkd3d_sleep(100);
hr = ID3D12CommandQueue_GetClockCalibration(context.queue, &gpu_times[1], &cpu_times[1]);
todo
ok(hr == S_OK, "Failed to retrieve calibrated timestamps, hr %#x.\n", hr);
todo
ok(gpu_times[1] > gpu_times[0], "Inconsistent GPU timestamps %"PRIu64" and %"PRIu64".\n",
gpu_times[0], gpu_times[1]);
todo
ok(cpu_times[1] > cpu_times[0], "Inconsistent CPU timestamps %"PRIu64" and %"PRIu64".\n",
cpu_times[0], cpu_times[1]);