Commit Graph

73 Commits (68ce8f81cc767ee5e7adfb38a9fb2e3388e21633)

Author SHA1 Message Date
Emil Velikov 68ce8f81cc Remove libdrm_amdgpu metrics
There are two alternatives - hwmon entries and gpu_metrics sysfs file.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov e3977ad648 meson: increase the warning_level to 2
The default is 1, which effectively omits -Wextra.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov a5d5091f0e meson: build with -Wno-unused-parameter
Otherwise we get a ton of warnings about unused function parameters.
The existing -Qunused-arguments seems to be clang specific.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
FlightlessMango 4d76ad5161 Fix some uglyness in meson build 3 years ago
FlightlessMango 67a4918439 Only check for glfw dep if mangoapp 3 years ago
FlightlessMango e0fe8b6930 Fix issue with imgui options 3 years ago
FlightlessMango d99d6c8bd4 Bump version to 0.6.6 3 years ago
FlightlessMango cd215854ce Mangoapp: meson option 3 years ago
FlightlessMango 4e3a40c6ef mangoapp + gamescope shm 3 years ago
jackun 67e5d790d1
Build and link to spdlog as static lib
Speeds up compiling a bit
3 years ago
jackun 6dee0948a5
Require meson >=0.54 for `default_library` option. 3 years ago
jackun a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time 3 years ago
jackun 2f807a4c0d
Add `spdlog` wrap and logging 3 years ago
jackun c093f9823e
Use libdrm_amdgpu for amdgpu sensor info, if available
Using plain `open` as `drmOpen` needs bus id check which needs interface 1.4 ioctl which gives EPERM cause only DRM_MASTER can call it :(

https://github.com/clbr/radeontop/issues/48#issuecomment-493792404
3 years ago
FlightlessMango e42002c57b Bump version to 0.6.5 3 years ago
FlightlessMango 7bddec9397 bump to v0.6.4 3 years ago
jackun 5f54a9cfe6
Bump to v0.6.3 3 years ago
Kira Bruneau d8a1ddf253
meson: Add vulkan_datadir option (#522)
This option enables using system Vulkan headers when it doesn't share
the same datadir as MangoHud. This is specifically an issue in NixOS
where packages are built into their own isolated directories in
/nix/store.

For example:
/nix/store/9g28nz6zh484144mzw670bx82y1ka49a-vulkan-headers-1.2.162.0/share/vulkan/registry/vk.xml

This is currently worked around in the Nix package, by symlinking the
vulkan-headers into MangoHud's install directory:

5debc57760/pkgs/tools/graphics/mangohud/default.nix (L66-L70)

Although, this hack causes the vulkan-headers to be included as a
runtime dependency when they're only needed at build time.

I tried to figure out a way to resolve the datadir automatically, but
found that just adding a new option is probably the best solution for
the following reasons:

- The vulkan.pc file used to resolve dep_vulkan doesn't contain any
information about the datadir.

- The share directory could be resolved relative to the vulkan include
directory and that would solve the specific issue for Nix, but the
datadir could be installed anywhere and that wouldn't be a general
solution.

- I couldn't find a way to resolve the data dir using the XDG Base
Directory Specification because meson doesn't provide a way to access
the necessary environment variables.

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
3 years ago
flightlessmango af57e0cb2d
Merge pull request #445 from stephanlachnit/p/build-source-rework
imgui wrap from WrapDB and build-source.sh rework
3 years ago
flightlessmango 206c55ef2e Bump version to v0.6.2 3 years ago
Stephan Lachnit b0ee2f749c
imgui wrap from Wrap DB and build-source.sh rework
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
3 years ago
jackun 53cca5e723
Merge remote-tracking branch 'origin/master' into develop 3 years ago
Aidan Harris 0a29c7369a
Explicitly test for the mako python module
Some distros (Gentoo) support multiple versions of python3 and mako may
not be built for all of the implementations. Testing for the module
early will make sure meson bails out if the module cannot be
found.
3 years ago
FlightlessMango 90ce1c5778 ImGui wrap 3 years ago
jackun 7b59095a79
Bump to v0.6.1 4 years ago
FlightlessMango 1c9e533a51 Bump meson build to 0.6.0 4 years ago
FlightlessMango 1263b8d954 Build with windows_deps 4 years ago
FlightlessMango 9391822da5 Basic d3d12 present hook 4 years ago
FlightlessMango b7aa6a997b Separate unix and windows in meson 4 years ago
FlightlessMango 6da5622002 Add minhook dep in meson 4 years ago
jackun c630588d22
Update version in meson.build 4 years ago
Stephan Lachnit 1f41652061 add a man page for mangohud
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
Stephan Lachnit acf2d88fbc Import Dear ImGui files as subproject
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
jackun 5fe5ac5f3d
Build script and fixes for Steam Runtime SDK 4 years ago
jackun 0d03b5a150
meson: use gnu_symbol_visibility argument
This uses a meson builtin to handle -fvisibility=hidden.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
4 years ago
Stephan Lachnit d956f60f86 remove old system nvml build option
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
Stephan Lachnit ae8d387998 Use vulkan-headers 1.2.142 from Warp DB
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
FlightlessMango 91ba6fa824 Bump version to 0.4.0 4 years ago
FlightlessMango f48c09e607 Bump version to 0.3.5 4 years ago
FlightlessMango e170e64f9c [Params] Version option 4 years ago
FlightlessMango 5ee573730a Removed obsolete license from meson.build files 4 years ago
jackun efed107af6
[meson] check void* size once and better-ish xnvctrl checks 4 years ago
FlightlessMango d6314da8b2 Merge branch 'master' into develop 4 years ago
Stephan Lachnit f860418e7e
Allow system NVML to be used
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
jackun 8024736253
Add DBus loader, combined ticker for Spotify metadata 4 years ago
FlightlessMango d975278396
Dbus with spotify 4 years ago
Stephan Lachnit 0998d33d72
Use Vulkan-Headers module via wrap
This commit replaces the git submodule for the Vulkan headers with meson subproject using wrap.

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
jackun 2f034c6d1e
Use X11 loader functions instead of linking to X11 libs 4 years ago
Danilo Spinella 0373383581
Add x11/wayland feature switches, rename 'use_xnvctrl' to 'with_xnvctrl' 4 years ago
jackun 82243bf115
Use more general sizeof to get arch "bitness" 4 years ago