Commit Graph

158 Commits (master)

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
Alessandro Toia 4be3ba20c2 GAMEPAD: add battery reporting for gamepad devices
(xone,xpadneo,ds4,ds5,switch)
2 years ago
FlightlessMango e9d4eeff04 mangohudctl meson option 2 years ago
FlightlessMango 37e18279e7 mangoapp: use amdgpu metrics 2 years ago
FlightlessMango 92151565fc mangoapp: disable some options 2 years ago
FlightlessMango 45be485a13 mangohud control 3 years ago
FlightlessMango da573e8eba mangoapp: fix not respecting nvctrl option 3 years ago
FlightlessMango cd215854ce Mangoapp: meson option 3 years ago
FlightlessMango 4e3a40c6ef mangoapp + gamescope shm 3 years ago
jackun 822e325d11
Add get_basename, fix win32 build
std::string::substr likes to throw
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
Alessandro Toia 5656001639 Add forkawesome from compressed Base85 TTF 3 years ago
Alessandro Toia 5adb4500c7 Install forkawesome font file 3 years ago
FlightlessMango a90c897feb Check battery info 3 years ago
jackun 47865573a8
Add option to prepend libdir to library's path in vulkan manifest
"\$LIB" technically breaks json but on the other hand vulkan loader
currently doesn't handle "\\$LIB"
Help with issue #468
3 years ago
jackun 54d6a8e889
Unset LD_LIBRARY_PATH if using absolute paths in LD_PRELOAD
$LIB in LD_LIBRARY_PATH makes `ldconfig` unhappy.
3 years ago
jackun 6a5cd38127
Meson option to have absolute paths in LD_PRELOAD 4 years ago
FlightlessMango 378cc1e089 Push params to HudElements options 4 years ago
FlightlessMango ac821df7fa Win32 basic d3d11 present hook 4 years ago
FlightlessMango 2f55f52011 Allow blacklist for unix too 4 years ago
FlightlessMango ab90abe4d4 De-linuxify vulkan 4 years ago
FlightlessMango bf9132bba1 Win32 nvapi gpu usage 4 years ago
FlightlessMango 7dd6792772 Win32 nvapi gpu usage 4 years ago
FlightlessMango 2ebb381166 Win32 d3d_shared 4 years ago
FlightlessMango cbd87585b4 Win32 cpu usage 4 years ago
FlightlessMango ff5d85a4a5 Win32 overlay_params 4 years ago
FlightlessMango ed466d3c9d Fix some more linux vs win compatability 4 years ago
FlightlessMango 785b37534d win32 file_utils 4 years ago
FlightlessMango c3fc0f10b0 Start separating vulkan, keybinds, overlay and font 4 years ago
FlightlessMango 1263b8d954 Build with windows_deps 4 years ago
FlightlessMango 9391822da5 Basic d3d12 present hook 4 years ago
FlightlessMango 8d3e8b5205 Add kiero to win 4 years ago
FlightlessMango 3ffa1bed7a Windows attach dll 4 years ago
FlightlessMango b7aa6a997b Separate unix and windows in meson 4 years ago
jackun a173989b1c
Make build.sh compatible with \$LIB 4 years ago
Stephan Lachnit d712d35aaf
simplify cross arch preloading
This commit does a couple of things. In the mangohud launch script, the library will be found using $LIB with ld, so the correct path is selected depending on the cpu arch. The same is done for mangohud.json (vulkan layer). In addition some now unused files have been deleted.

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
jackun 2da02ee553
Try to limit exported symbols with --version-script 4 years ago
FlightlessMango 99cefe96a5 Created logging.cpp 4 years ago
FlightlessMango 916ef02eb2 Revert "Add readlink.c to meson"
This reverts commit 56933049d0.
4 years ago
FlightlessMango 56933049d0 Add readlink.c to meson 4 years ago
Stephan Lachnit d956f60f86 remove old system nvml build option
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
jackun 953c8d0e0f
Add meson option `with_nvml` 4 years ago
FlightlessMango 4bdd252393 Load 32bit libs if they exist with 64bit bin 4 years ago
jackun 768297b430
[editorconfig] Apply whitespace rules 4 years ago
FlightlessMango ed62155310 Parse pci.ids
Co-authored-by: jackun <jack.un@gmail.com>
4 years ago
FlightlessMango 03c9d1cd90 We don't need two vk_enum_to_str in shared_library 4 years ago
FlightlessMango 70d7ea4948 Add mangohud_version to shared_library 4 years ago
FlightlessMango 5ee573730a Removed obsolete license from meson.build files 4 years ago
jackun 934dc31e44
Add utility lib with dlsym hooking 4 years ago
Sporif 61ef9244e9 Disable dlsym hooking by default and fix LD_PRELOAD propagation to new processes
This allows `mangohud steam` to work
4 years ago
Sporif c4a00704cf Separate out blacklist implementation 4 years ago
jackun efed107af6
[meson] check void* size once and better-ish xnvctrl checks 4 years ago
jackun f35e49defa
[OpenGL] Merge "shared" files back to imgui_hud.cpp 4 years ago
FlightlessMango d6314da8b2 Merge branch 'master' into develop 4 years ago
jackun 2383ba26fc
Tell GCC to stop exporting static library functions
Should fix crashes where games using Dear ImGui link to ours.
4 years ago
Stephan Lachnit f860418e7e
Allow system NVML to be used
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
jackun 780ea7c89b
[OpenGL] Use GLAD instead on gl3w and hook EGL 4 years ago
jackun a6bfa712e3
Do a sanity check for XNVCtrl and GLX headers 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 8cd3172335
[OpenGL] Separate GLX out from shareable code so wayland sessions can just use EGL, hopefully 4 years ago
jackun 2f034c6d1e
Use X11 loader functions instead of linking to X11 libs 4 years ago
jackun b2e6727b25
[OpenGL] Rename loader_gl.* to loader_glx.* 4 years ago
jackun 2e7d92e068
Move `real_dlsym` files out from `gl` subdir 4 years ago
jackun e750173b51
[OpenGL] Check if X11 is enabled 4 years ago
Danilo Spinella 0373383581
Add x11/wayland feature switches, rename 'use_xnvctrl' to 'with_xnvctrl' 4 years ago
jackun 59113b3ae2
[OpenGL] Move ImGui functions to separate file 4 years ago
jackun ebe23d3431
[OpenGL] Rename inject.cpp to inject_glx.cpp in preparation for separating X11 related functions 4 years ago
jackun 049e960589
Add 'use_xnvctrl' feature to allow building without libXNVCtrl support 4 years ago
FlightlessMango f81af99ee5 NVCtrl meson build 4 years ago
FlightlessMango 8ee0ec2c3f NVCtrl loader 4 years ago
jackun bb3aba9080
[OpenGL] Use elfhacks to load real OpenGL functions 4 years ago
FlightlessMango c5dad16612 Listen for modify on config file 4 years ago
FlightlessMango 71b602751d [meson] option to include_doc 4 years ago
jackun fa41e6f882
Always configure vulkan json 4 years ago
jackun ad64bf345d
Update build scripts, again
Install to $prefix$libdir/mangohud by default.
4 years ago
FlightlessMango 501d7d74d2 install example config with meson 4 years ago
FlightlessMango 8133048e9c Add blank configuration for project_name and layer_suffix with build.sh 4 years ago
FlightlessMango 8153e29eb3 forgot to add '/' to end of path 4 years ago
FlightlessMango 8599484032 configure .json files with meson 4 years ago
jackun f99129f9de
Libdirs: once more, with feeling 4 years ago
FlightlessMango a1eafc3403 Install .so into subdirectory in libdir 4 years ago
jackun a64b6cada2
Build/install scripts: verbose tar output and set files' owner/group to root 4 years ago
FlightlessMango 8558d038d7 refactored the install process 4 years ago
FlightlessMango a2735693ba Merge opengl into develop 4 years ago
jackun f8398c3e7a Add I/O stats
Using /proc/self/io 'read_bytes' and 'write_bytes' fields which count only
reads/writes that hit the storage (i.e no cached reads).
4 years ago
jackun 70d0e81c36
Clone vulkan headers if needed 4 years ago
Danilo Spinella 18edd4eb50 meson: Add option to use system vulkan headers 4 years ago
FlightlessMango ebc49ae8c5 Basic parse config 4 years ago
FlightlessMango d578d612d4 Renamed overlay_param.c to .cpp 4 years ago
FlightlessMango 36eba167d8
use nvml for nvidia gpu memory instead of nvctrl 4 years ago
FlightlessMango 6affdb8c51
fetch nvidia vram used from nvctrl 4 years ago
FlightlessMango 8ab7cd0f20
Basic memory fetching 4 years ago
jackun b5bfd437a6
Add file and string utility functions 4 years ago
FlightlessMango dcb0dcd441 Merge branch 'dynamic_nvml' 4 years ago