radv: Use os_localtime instead of localtime_r
Cross-platform abstraction that works with MSVC. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7866>
This commit is contained in:
@@ -669,7 +669,7 @@ radv_check_gpu_hangs(struct radv_queue *queue, struct radeon_cmdbuf *cs)
|
||||
char buf_time[128];
|
||||
|
||||
time(&raw_time);
|
||||
timep = localtime_r(&raw_time, &result);
|
||||
timep = os_localtime(&raw_time, &result);
|
||||
strftime(buf_time, sizeof(buf_time), "%Y.%m.%d_%H.%M.%S", timep);
|
||||
|
||||
snprintf(dump_dir, sizeof(dump_dir), "%s/"RADV_DUMP_DIR"_%d_%s",
|
||||
|
Reference in New Issue
Block a user