Commit Graph

17 Commits

Author SHA1 Message Date
Khem Raj ef64c35092 apitrace: Link in libatomic for 64bit atomic builtins
Fixes errors e.g.
riscv32-yoe-linux-musl-ld.lld: error: undefined symbol: __atomic_store_8
   >>> referenced by unique_lock.h:0 (/usr/include/c++/v1/__mutex/unique_lock.h:0)
   >>>               retrace/eglretrace.lto.libretrace_common.a(retrace_main.cpp.o at 399912).o:(retrace::RelayRunner::runRace())
   >>> referenced by retrace_main.cpp:1218 (retrace/retrace_main.cpp:1218)
   >>>               retrace/eglretrace.lto.libretrace_common.a(retrace_main.cpp.o at 399912).o:(main)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-09 13:57:04 -07:00
Alper Ak 9fd461a067 apitrace: Upgrade 11.1 -> 13.0 to allow CMake 4+ compatibility
- Drop 0001-Explicit-header-stdint.patch because already fixed in newer version.

Changelog:

https://github.com/apitrace/apitrace/releases/tag/13.0
https://github.com/apitrace/apitrace/releases/tag/12.0

Fix:

| CMake Error at thirdparty/libbacktrace.cmake:32 (cmake_minimum_required):
|   Compatibility with CMake < 3.5 has been removed from CMake.
|
|   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
|   to tell CMake that the project requires at least <min> but has been updated
|   to work with policies introduced by <max> or earlier.
|
|   Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
| Call Stack (most recent call first):
|   thirdparty/CMakeLists.txt:13 (include)
|   thirdparty/CMakeLists.txt:55 (include_with_scope)

Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-08 23:40:33 -07:00
Alexander Kanavin fc78d37ff0 meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00
tho3.nguyen 8f3a0a8570 apitrace: Fix build with gcc-15
To fix errors:
In file included from TOPDIR/tmp/work/core2-64-oe-linux/apitrace/11.1+11.1+git/git/frametrim/ft_matrixstate.hpp:30,
                 from TOPDIR/tmp/work/core2-64-oe-linux/apitrace/11.1+11.1+git/git/frametrim/ft_matrixstate.cpp:28:
TOPDIR/tmp/work/core2-64-oe-linux/apitrace/11.1+11.1+git/git/frametrim/ft_dependecyobject.hpp:187:44: error: 'uint64_t' was not declared in this scope
  187 |     std::unordered_map<unsigned, std::pair<uint64_t, uint64_t>> m_buffer_mappings;
      |                                            ^~~~~~~~
...
TOPDIR/tmp/work/core2-64-oe-linux/apitrace/11.1+11.1+git/git/retrace/metric_writer.cpp:50:70: error: 'uint64_t' does not name a type
   50 |         case CNT_NUM_UINT64: std::cout << "\t" << *(reinterpret_cast<uint64_t*>(data)); break;
...

Signed-off-by: tho3.nguyen <tho3.nguyen@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-28 10:28:12 -07:00
Martin Jansa 21f956598d recipes: drop ${SRCPV} usage
* Drop SRCPV similarly like oe-core did in:
  https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=843f82a246a535c353e08072f252d1dc78217872

* SRCPV is deferred now from PV to PKGV since:
  https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=a8e7b0f932b9ea69b3a218fca18041676c65aba0

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
2024-02-09 09:52:12 -08:00
Wang Mingyu 4d2a383e76 apitrace: upgrade 11.0 -> 11.1
Changelog:
=========
 frametrim: fix active texture check compare by @okias in #789
 gltrim: handle glFramebufferTexture3D and glMultiDrawElements by @gerddie in #790
 implement ARB_create_context_no_error for GLX and WGL by @okias in #791
 wrappers/glcaps: Check config availablility before dereferencing by @gerddie in #793

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-30 22:07:20 -07:00
zhengrq.fnst ee925a88e1 apitrace: upgrade 10.0 -> 11.0
Changelog:
==========
appveyor: Update GitHub deployment token.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-09 07:52:29 -07:00
Richard Purdie b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Marek Vasut c7d3daba60 apitrace: Conditionally enable X11 support
In case DISTRO_FEATURES contain both x11 and opengl, enable X11 support
in apitrace, because all the requirements are satisfied.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-16 09:50:38 -07:00
Marek Vasut d44f564610 apitrace: Upgrade to latest version
Update apitrace to latest version available in apitrace git
and drop patch which is now upstream as apitrace commit
d28a980802ad48568c87da02d630c8babfe163bb

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-16 09:50:38 -07:00
Khem Raj 9fdc7960ba apitrace: Enable on glibc >= 2.34
Drop unused patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-01 14:31:10 -07:00
Martin Jansa c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj ba94b0fefb apitrace: Exclude from builds with glibc 2.34+
It needs some work see [1]

[1] https://github.com/apitrace/apitrace/issues/756

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj 5f1e095ed6 apitrace: Update to latest trunk
Use git submodules fetcher

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-16 10:28:42 -07:00
Khem Raj 259e6d305a apitrace: Upgrade to 0.10
apitrace: Fix build with musl

Changes are here [1] which fixed musl build

[1] https://github.com/apitrace/apitrace/releases/tag/10.0

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 08:27:27 -07:00
Khem Raj 3b989a03ad apitrace: Disable secuirty flags for clang
Add apitrace to relevant packagegroup

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Michael Tretter <m.tretter@pengutronix.de>
2020-10-19 23:49:22 -07:00
Michael Tretter 13eacba213 apitrace: add new recipe
apitrace consists of a set of tools to:

 - trace OpenGL, OpenGL ES, Direct3D, and DirectDraw APIs calls to a file;

 - replay OpenGL and OpenGL ES calls from a file;

 - inspect OpenGL state at any call while retracing;

 - visualize and edit trace files.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-19 23:49:22 -07:00