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 <eric.engestrom@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6995>
This commit is contained in:
parent
fe894dc0b3
commit
73dd86c421
|
@ -56,6 +56,11 @@
|
||||||
#include "compiler/glsl_types.h"
|
#include "compiler/glsl_types.h"
|
||||||
#include "util/driconf.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 *
|
static struct radv_timeline_point *
|
||||||
radv_timeline_find_point_at_least_locked(struct radv_device *device,
|
radv_timeline_find_point_at_least_locked(struct radv_device *device,
|
||||||
struct radv_timeline *timeline,
|
struct radv_timeline *timeline,
|
||||||
|
|
|
@ -70,6 +70,11 @@ static const driOptionDescription anv_dri_options[] = {
|
||||||
/* Render engine timestamp register */
|
/* Render engine timestamp register */
|
||||||
#define TIMESTAMP 0x2358
|
#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
|
static void
|
||||||
compiler_debug_log(void *data, const char *fmt, ...)
|
compiler_debug_log(void *data, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue