mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
committed by
Alexandre Julliard
parent
440286e9de
commit
66bc2672a1
@@ -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]);
|
||||
|
||||
|
Reference in New Issue
Block a user