ports/graphics/mesa-dri/files/patch-src_amd_vulkan_radv__device.c
Jan Beich cd740e600a graphics/mesa-{libs,dri}: update to 18.3.2
Changes:	https://www.mesa3d.org/relnotes/18.3.0.html
Changes:	https://www.mesa3d.org/relnotes/18.3.1.html
Changes:	https://www.mesa3d.org/relnotes/18.3.2.html
PR:		233034
Tested by:	Kevin Oberman
Approved by:	maintainer timeout (2 weeks after 2019Q1)
Differential Revision:	https://reviews.freebsd.org/D17872
2019-01-17 15:34:55 +00:00

19 lines
478 B
C

- 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
@@ -50,6 +50,14 @@
#include "util/debug.h"
#include "util/mesa-sha1.h"
+#ifndef CLOCK_MONOTONIC_RAW
+# ifdef CLOCK_MONOTONIC_FAST
+# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST
+# else
+# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
+# endif
+#endif
+
static int
radv_device_get_cache_uuid(enum radeon_family family, void *uuid)
{