--- /dev/null
+#include <ttrace.h>
+
+#define TRACE_BEGIN(name,...) traceBegin(TTRACE_TAG_GRAPHICS, name, ##__VA_ARGS__)
+#define TRACE_END() traceEnd(TTRACE_TAG_GRAPHICS)
+#define TRACE_ASYNC_BEGIN(key, name,...) traceAsyncBegin(TTRACE_TAG_GRAPHICS, key, name, ##__VA_ARGS__)
+#define TRACE_ASYNC_END(key, name,...) traceAsyncEnd(TTRACE_TAG_GRAPHICS, key, name, ##__VA_ARGS__)
+#define TRACE_COUNTER(value, name,...) traceCounter(TTRACE_TAG_GRAPHICS, value, name, ##__VA_ARGS__)
+#define TRACE_MARK(name,...) traceMark(TTRACE_TAG_GRAPHICS, name, ##__VA_ARGS__)
+
+
+
BuildRequires: meson
BuildRequires: python3
BuildRequires: python3-mako
+BuildRequires: pkgconfig(ttrace)
%ifarch x86_64 %ix86
BuildRequires: pkgconfig(libdrm_intel) >= 2.4.24
%endif
%{?asan:/usr/bin/gcc-unforce-options}
mkdir build
meson --prefix %{_prefix} build/ \
+ -Dc_link_args="-lttrace" \
+ -Dcpp_link_args="-lttrace" \
-Dlibdir=%{_libdir} \
-Dgallium-va=false \
-Dgallium-vdpau=false \