Changeset View
Changeset View
Standalone View
Standalone View
graphics/mesa-dri/files/patch-src_amd_vulkan_radv__device.c
- Define CLOCK_MONOTONIC_RAW if missing | --- src/amd/vulkan/radv_device.c.orig 2020-09-28 22:52:10 UTC | ||||
--- src/amd/vulkan/radv_device.c.orig 2018-11-06 16:16:02 UTC | |||||
+++ src/amd/vulkan/radv_device.c | +++ src/amd/vulkan/radv_device.c | ||||
@@ -50,6 +50,14 @@ | @@ -56,6 +56,10 @@ | ||||
#include "util/debug.h" | #include "compiler/glsl_types.h" | ||||
#include "util/mesa-sha1.h" | #include "util/driconf.h" | ||||
+#ifndef CLOCK_MONOTONIC_RAW | +#if DETECT_OS_FREEBSD | ||||
+# ifdef CLOCK_MONOTONIC_FAST | |||||
+# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST | +#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST | ||||
+# else | |||||
+# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC | |||||
+# endif | +#endif | ||||
+#endif | |||||
+ | + | ||||
static int | static struct radv_timeline_point * | ||||
radv_device_get_cache_uuid(enum radeon_family family, void *uuid) | radv_timeline_find_point_at_least_locked(struct radv_device *device, | ||||
{ | struct radv_timeline *timeline, |