mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Add tests for ID3D12CommandQueue_GetClockCalibration().
Based on a vkd3d-proton patch by Hans-Kristian Arntzen. 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
2047bfa664
commit
3d044c4453
@@ -60,6 +60,7 @@ typedef int HRESULT;
|
||||
#else
|
||||
# define VKD3D_UTILS_API_VERSION VKD3D_API_VERSION_1_2
|
||||
# include <pthread.h>
|
||||
# include <unistd.h>
|
||||
# include "vkd3d.h"
|
||||
# include "vkd3d_utils.h"
|
||||
#endif
|
||||
@@ -203,6 +204,19 @@ static inline bool join_thread(HANDLE untyped_thread)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
static inline void vkd3d_sleep(unsigned int ms)
|
||||
{
|
||||
Sleep(ms);
|
||||
}
|
||||
|
||||
#else
|
||||
static inline void vkd3d_sleep(unsigned int ms)
|
||||
{
|
||||
usleep(1000 * ms);
|
||||
}
|
||||
#endif
|
||||
|
||||
static HRESULT wait_for_fence(ID3D12Fence *fence, uint64_t value)
|
||||
{
|
||||
unsigned int ret;
|
||||
|
Reference in New Issue
Block a user