Commit Graph

1191 Commits

Author SHA1 Message Date
FlightlessMango
8f79e9cef3 sampler: don't apply picmip unless it's set in config 2023-04-15 20:29:47 +02:00
Oliver Chang
a155c10df3 Add missing division for fallback AMD CPU power calculation. 2023-04-13 18:37:59 +02:00
FlightlessMango
05444cb021 gpu: amdgpuinfo: ifdef linux for windows build 2023-04-09 19:18:35 +02:00
FlightlessMango
b8bd09d638 More windows fixes 2023-04-09 19:06:46 +02:00
FlightlessMango
302fb6ad19 windows build: use mingw d3d12 headers instead of wine 2023-04-09 18:40:52 +02:00
FlightlessMango
c9d3a70a48 sampler: use instance params 2023-04-09 17:01:54 +02:00
Alessandro Toia
328df38ecc Remove not needed cerr 2023-04-06 22:43:09 -07:00
Alessandro Toia
4b2e78a9d7 vulkan: make sure to parse config before checking parameters 2023-04-06 22:41:53 -07:00
FlightlessMango
070fa1be84 presets: don't clear options when parsing 2023-04-06 09:53:02 +02:00
FlightlessMango
915a3babad Add preset param and allow for preset config 2023-04-06 08:35:44 +02:00
FlightlessMango
a6715b1bf6 Hud elements: Put frame_timing inside a child window to prevent it messing with the parent layout
Co-authored-by: Alessandro <gort818@gmail.com>
2023-04-06 07:44:21 +02:00
sfrcorne
020e8485e2 small fix for average cpu_power 2 2023-04-04 20:53:19 +02:00
sfrcorne
2187b9ef19 small fix for average cpu_power 2023-04-04 02:42:49 +02:00
sfrcorne
a98a402619 Fix for AMD Ryzen 7000 CPU when using the iGPU. 2023-04-04 02:42:49 +02:00
sfrcorne
cd74b27da2 Cleanup cpu.cpp and and support for gpu_metrics_v2_3 2023-04-04 02:42:49 +02:00
Emil Velikov
1b3f8b29bc meson: restrict most libMangoHud.so symbols
With the introduction of the static library, we forgot the version
script. As a result we were spilling all the internal symbols.

Fixes: d4aa74c ("Create static and shared libs separately")
Closes: https://github.com/flightlessmango/MangoHud/issues/933
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2023-04-03 02:21:42 +02:00
FlightlessMango
ce5e0683f0 Nearest filter param 2023-04-03 00:04:24 +02:00
FlightlessMango
4fb0bb328b Bicubic filtering param 2023-04-03 00:04:24 +02:00
FlightlessMango
de29e057de Trilinear filtering param 2023-04-03 00:04:24 +02:00
FlightlessMango
5fe07a0ac3 Anisotropic filtering param 2023-04-03 00:04:24 +02:00
FlightlessMango
9b9e6e7b68 Sampler hook and picmip param 2023-04-03 00:04:24 +02:00
Emil Velikov
80d394c0cd meson: make libMangoHud.so append_libdir_mangohud aware
The library does not honour the correct install location. Seems like it
was broken for a while and I didn't catch it with my recent rework...
Since all the scripts flip the default "true" to "false" 🤦

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2023-04-02 23:11:05 +02:00
FlightlessMango
c037a0cca7 amdgpu: add gpu_metrics_v2_3 2023-03-28 22:29:59 +02:00
FlightlessMango
d59375b0c9 amdgpu: add support for gpu_metrics_v2_3 2023-03-28 22:27:12 +02:00
FlightlessMango
22d374cc13 steam deck: fix fan speed 2023-03-28 21:47:09 +02:00
Leopard1907
1f841ef1a6 blacklist: Add Amazon client
Amazon Games App client needs this.
2023-03-28 02:59:05 +02:00
jackun
313abbe6a7
[OpenGL] Check GL_VENDOR too to determine GPU's vendor id
Try to fix #965
2023-03-27 19:27:04 +03:00
jackun
1055bc0c6c X11 keyboard poller thread 2023-03-20 03:53:53 +01:00
Hannes Mann
3cebc55a35 hud_elements: Show FPS limit method 2023-03-16 03:33:42 +01:00
Hannes Mann
e1f41bbb92 glx,egl,vulkan: Limit FPS early or late depending on config 2023-03-16 03:33:42 +01:00
Hannes Mann
f92c8b1b76 overlay_params: Add FPS limit method 2023-03-16 03:33:42 +01:00
Artem Polishchuk
d323752d0b build: Fix building with GCC 13 2023-03-14 21:54:37 +01:00
Emil Velikov
5c86369758 meson: explicitly annotate version.h as dependency
Currently we list the custom_target (aka vcs_tag() as part of the
sources. Although since it's not an explicit dependency meson/ninja are
free to compile the C/C++ files, before the file is generated.

Closes: https://github.com/flightlessmango/MangoHud/issues/862
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2023-03-13 21:56:18 +01:00
Emil Velikov
f47f777e26 meson: unwrap ld_libdir_mangohud handling, remove ld_libdir_abs
Currently we have ld_libdir_abs which defaults to false. In that case,
both the mangohud shell wrapper, as well as the json files, reference
the DSOs directly without any path component.

This means that at run-time the dynamic linker, vulkan loader as well as
pressure-vessel will need to jump through hoops and figure out the
bitness of the DSO, whether one wants the 32 or 64bit one and even then
there will be confusing messages like:

fatal: /usr/lib/libMangoHud.so: wrong ELF class: ELFCLASS32

When set to true, as seen in the in-tree build.sh we'll append empty
path to LD_LIBRARY_PATH (bad), the full path with the $LIB token will be
used with LD_PRELOAD (good) and json files (bad).

Since we are generating separate json files, we can use the actual path
(while $LIB currently works, it's not really strict json nor documented
as supported). We can also drop the dubious LD_LIBRARY_PATH manipulation

This basically reinstates the prepend_libdir_vk=true option that was
dropped earlier.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-13 21:53:27 +01:00
Emil Velikov
dd374d4c9e meson: remove prepend_libdir_vk option
The option is always true for all distributions that build Mangohud.
While only the in-tree PKGBUILD disables it for undocumented reasons.

In practise the option will be enabled across the board - in different
manner, with latter commit. But for now, just remove it.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-13 21:53:27 +01:00
Emil Velikov
491510d41c meson: produce per cpu_family json files
This will allow us to remove the $LIB from the json files and simplify
the related lib handling.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-13 21:53:27 +01:00
Emil Velikov
5d53d0dcc3 meson: inline PROJECT_NAME in mangohud.json.in
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-13 21:53:27 +01:00
Emil Velikov
def59db953 meson: remove ld_libdir_prefix option
The option defaults to false in-tree and across all distributions. The
only alleged use-case is the build.sh/build-srt.sh scripts. Although the
output of those scripts is absolutely identical with or w/o the flag.

Remove it.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-13 21:53:27 +01:00
FlightlessMango
06b46fd5d7 Fix building with mingw 2023-03-12 14:44:40 +01:00
FlightlessMango
c64ff84007 horizontal/compact layout fixes + battery_watt/battery_time params 2023-03-12 14:12:56 +01:00
FlightlessMango
47f822f19c mangohudctl: reload_config variable in msg sctruct 2023-03-12 14:12:56 +01:00
Emil Velikov
08c26d595f meson: do not pick system vulkan, when explicitly disabled
For this to actually work, we also need to set dep_vulkan for all users.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-12 14:08:42 +01:00
Emil Velikov
047bc2e7f7 tests: make it work aka hide HUDElements
Currently the test is pulling an external reference to HUDElements,
which is unresolved so the test fails to link.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-12 14:08:42 +01:00
FlightlessMango
d84c85609a overlay: position: bottom center 2023-03-11 19:55:24 +01:00
FlightlessMango
175493c89c horizontal: default to max width 2023-03-11 19:55:24 +01:00
FlightlessMango
8cf92ff8a6 overlay: horizontal_separator func 2023-03-11 19:55:24 +01:00
Alessandro Toia
3e136db6a8 gamepad: Change DS5 to DS4/5 as DS4 was added to hid_playstation in kernel 6.2 2023-03-07 16:12:14 -08:00
FlightlessMango
d0f8c8aa94 mangoapp: control: rerload_config option 2023-03-07 18:19:23 +01:00
Emil Velikov
221d335006 meson: remove mangoapp_32bit option
Was introduced as a means to shorten the build cycles. With the static
lib helper it should no longer be needed.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-04 22:23:35 +02:00
Emil Velikov
eecd451068 meson: build with -Werror=missing-declarations
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-04 21:40:56 +02:00