mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 18:20:30 +01:00
dzn: Use os_time_sleep instead of Win32 Sleep
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Bill Kristiansen <billkris@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17340>
This commit is contained in:
parent
1a01187e1b
commit
b31c0775e6
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,8 @@
|
|||
#include "vk_debug_report.h"
|
||||
#include "vk_util.h"
|
||||
|
||||
#include "os_time.h"
|
||||
|
||||
static D3D12_QUERY_HEAP_TYPE
|
||||
dzn_query_pool_get_heap_type(VkQueryType in)
|
||||
{
|
||||
|
|
@ -290,7 +292,7 @@ dzn_GetQueryPoolResults(VkDevice device,
|
|||
/* Check again in 10ms.
|
||||
* FIXME: decrease the polling period if it happens to hurt latency.
|
||||
*/
|
||||
Sleep(10);
|
||||
os_time_sleep(10 * 1000);
|
||||
}
|
||||
|
||||
ID3D12Fence_SetEventOnCompletion(query_fence, query_fence_val, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue