Module: Mesa Branch: master Commit: 73dd86c42145b2b99b0528cae25b48c9c661aeac URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=73dd86c42145b2b99b0528cae25b48c9c661aeac
Author: Greg V <[email protected]> Date: Tue Oct 30 20:38:03 2018 +0300 radv,anv: use CLOCK_MONOTONIC_FAST when CLOCK_MONOTONIC_RAW is undefined CLOCK_MONOTONIC_FAST is a similar clock from FreeBSD. Acked-by: Eric Engestrom <[email protected]> Reviewed-by: Matt Turner <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6995> --- src/amd/vulkan/radv_device.c | 5 +++++ src/intel/vulkan/anv_device.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 26c232fc230..162dbab49c5 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -56,6 +56,11 @@ #include "compiler/glsl_types.h" #include "util/driconf.h" +/* The "RAW" clocks on Linux are called "FAST" on FreeBSD */ +#if !defined(CLOCK_MONOTONIC_RAW) && defined(CLOCK_MONOTONIC_FAST) +#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST +#endif + static struct radv_timeline_point * radv_timeline_find_point_at_least_locked(struct radv_device *device, struct radv_timeline *timeline, diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 6db7e8eb8e0..61607aebcd8 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -70,6 +70,11 @@ static const driOptionDescription anv_dri_options[] = { /* Render engine timestamp register */ #define TIMESTAMP 0x2358 +/* The "RAW" clocks on Linux are called "FAST" on FreeBSD */ +#if !defined(CLOCK_MONOTONIC_RAW) && defined(CLOCK_MONOTONIC_FAST) +#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST +#endif + static void compiler_debug_log(void *data, const char *fmt, ...) { _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
