Changeset View
Changeset View
Standalone View
Standalone View
graphics/mesa/files/patch-src_amd_vulkan_radv__device.c
- Define CLOCK_MONOTONIC_RAW if missing | - Define CLOCK_MONOTONIC_RAW if missing | ||||
--- src/amd/vulkan/radv_device.c.orig 2018-11-06 16:16:02 UTC | --- src/amd/vulkan/radv_device.c.orig 2019-12-18 19:04:21 UTC | ||||
+++ src/amd/vulkan/radv_device.c | +++ src/amd/vulkan/radv_device.c | ||||
@@ -50,6 +50,14 @@ | @@ -49,6 +49,14 @@ | ||||
#include "util/debug.h" | #include "compiler/glsl_types.h" | ||||
#include "util/mesa-sha1.h" | #include "util/xmlpool.h" | ||||
+#ifndef CLOCK_MONOTONIC_RAW | +#ifndef CLOCK_MONOTONIC_RAW | ||||
+# ifdef CLOCK_MONOTONIC_FAST | +# ifdef CLOCK_MONOTONIC_FAST | ||||
+# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST | +# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST | ||||
+# else | +# else | ||||
+# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC | +# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC | ||||
+# endif | +# endif | ||||
+#endif | +#endif | ||||
+ | + | ||||
static int | static int | ||||
radv_device_get_cache_uuid(enum radeon_family family, void *uuid) | radv_device_get_cache_uuid(enum radeon_family family, void *uuid) | ||||
{ | { |