Module: Mesa Branch: master Commit: 3fe62252e4ddbad519d0ce50e9dd46173e413857 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3fe62252e4ddbad519d0ce50e9dd46173e413857
Author: James Park <[email protected]> Date: Thu Nov 26 19:00:01 2020 -0800 radv: Use os_localtime instead of localtime_r Cross-platform abstraction that works with MSVC. Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7866> --- src/amd/vulkan/radv_debug.c | 2 +- src/amd/vulkan/radv_rgp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index 9798305ab0a..020474f0eaf 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -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", diff --git a/src/amd/vulkan/radv_rgp.c b/src/amd/vulkan/radv_rgp.c index efcf2ae0fe4..1f889ed258b 100644 --- a/src/amd/vulkan/radv_rgp.c +++ b/src/amd/vulkan/radv_rgp.c @@ -132,7 +132,7 @@ radv_sqtt_fill_header(struct sqtt_file_header *header) header->chunk_offset = sizeof(*header); time(&raw_time); - timep = localtime_r(&raw_time, &result); + timep = os_localtime(&raw_time, &result); header->second = timep->tm_sec; header->minute = timep->tm_min; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
