0
0
mirror of https://notabug.org/litucks/torzu.git synced 2025-04-28 09:35:26 +00:00

27230 Commits

Author SHA1 Message Date
spectranator
5b478bdb9c Link against all required Boost components 2025-04-13 13:05:27 +02:00
spectranator
b10bcac0cf Added loose snippets for Windows build on Linux guide 2025-04-13 00:21:17 +00:00
spectranator
cfbaa32d66 Updated minimum Boost version in Linux build guide 2025-04-13 00:14:42 +00:00
spectranator
125f4e2372 Updated vcpkg for updated Boost 2025-04-12 2025-04-12 23:27:30 +02:00
spectranator
4e6bf7e82e In containerized AppImage build script allow CPM to be used with Clang 2025-04-12 22:48:09 +02:00
spectranator
76516783d3 Optionally use Clang for containerized AppImage build 2025-04-12 22:33:53 +02:00
spectranator
a426de1c51 Optionally use CPM in containerized AppImage build 2025-04-12 22:12:47 +02:00
spectranator
335570dfd3 In containerized AppImage build use Clang and allow thin/fat LTO for smaller and more optimized AppImages 2025-04-12 21:18:30 +02:00
spectranator
1319089702 Also mention Citron in README 2025-04-12 18:48:29 +02:00
spectranator
a640bbee41 Allow Yuzu to be built using Clang-CL for better compiler optimizations for Windows
Also updates Boost to 1.88.0
2025-04-12 18:46:13 +02:00
spectranator
709f70a3b2 Fix shader compile error if source directory path contains spaces 2025-04-12 12:28:22 +00:00
spectranator
977ed0063a Implemented dependency collection via CPM.cmake 2025-04-12 04:10:29 +02:00
spectranator
7c17d72b1a Restored accidentally removed IRC section in README 2025-04-11 19:10:12 +00:00
spectranator
ff2e94b286 Updated SDL to fix pipewire related compile error 2025-04-11 15:32:53 +02:00
spectranator
5de4fd6c76 Minor fixes around cleanup code in containerized AppImage build script 2025-04-06 22:48:56 +00:00
Zephyron
8f1b45003b service/vi: Improve OpenDisplay validation
Updates the OpenDisplay function in IApplicationDisplayService to properly
validate display names. Instead of only accepting "Default", now validates
against all known valid display names: "Default", "External", "Edid",
"Internal", and "Null".

- Changes log level from WARNING to DEBUG since this is no longer stubbed
- Adds proper validation for all valid display names
- Returns ResultOperationFailed for invalid display names
- Improves logging by including the requested display name
2025-04-06 23:41:57 +02:00
Zephyron
f78b30dbc4 cmake: Optimize Android VVL download logic
Improve the Vulkan Validation Layer (VVL) download logic for Android by checking
for the final library file instead of just the zip archive. This prevents
unnecessary re-downloads and extractions when the library is already in place.

The check now looks for libVkLayer_khronos_validation.so in the final
destination path before attempting to download and extract the archive.
2025-04-06 23:14:29 +02:00
Zephyron
e7e5906892 vulkan: Improve memory allocation robustness
Enhances the Vulkan memory allocator with better OOM handling and memory
alignment:

* Add memory recovery by cleaning up empty allocations before failing
* Implement proper fallback to non-device-local memory
* Simplify memory alignment handling for different vendors
* Add better error logging for allocation failures
* Add IsEmpty() helper to track unused allocations
* Fix alignment requirements for Adreno (4KB) vs other vendors

These changes improve the robustness of memory allocation, particularly
in low-memory situations, and streamline vendor-specific alignment
requirements.
2025-04-06 23:08:13 +02:00
spectranator
1526678a53 Removed "limited development" section from readme
It's not like I want the project to become "super public" again, I just dislike the way that section is written. It mostly still applies.
2025-04-06 22:47:41 +02:00
spectranator
2384d30c2a AppImage runtime scripts rewrite (now functional on Steam Deck!) 2025-04-06 2025-04-06 21:32:47 +02:00
spectranator
e52e4ca429 Removed leftover Debian container AppImage build debug code 2025-04-06 20:59:06 +02:00
spectranator
a16e593fa8 Made AppImages way more robust, compatible and reproducible using containerization and by using system-provided glibc 2025-04-06 19:15:22 +02:00
EmulationEnjoyer
f8ae0e4f2a Register ssl:s service to fix game hangs (#109)
Fixes an infinite timeout hanging issue when booting "Xenoblade Chronicles X: Definitive Edition"
(may apply to other titles as well)

>  Service.SM <Info> core\hle\service\sm\sm.cpp:GetServiceImpl:187: Waiting for service ssl:s to become available

ref: 51800e249b

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/109
Co-authored-by: EmulationEnjoyer <emulationenjoyer@noreply.localhost>
Co-committed-by: EmulationEnjoyer <emulationenjoyer@noreply.localhost>
2025-04-06 11:52:50 +00:00
spectranator
b23dea24cd Added note about recent infrastructure issues to readme 2025-04-06 13:48:37 +02:00
spectranator
eaa9c9e3a4 Updatd Vulkan Memory Allocator 2025-02-22 17:57:15 +01:00
spectranator
3d24fc2f00 Updated SPIRV and Vulkan externals 2025-02-22 17:52:59 +01:00
deftdawg
6ead429195 Fix: Joycon udev rules not applying due to typo in dist/72-yuzu-input.rules (#106)
Fixes - https://github.com/NixOS/nixpkgs/issues/374238

Without this Joycons are only detectable/usable when running yuzu/torzu as sudo/root (however sound does not work as sudo/root).

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/106
Co-authored-by: deftdawg <deftdawg@noreply.localhost>
Co-committed-by: deftdawg <deftdawg@noreply.localhost>
2025-02-04 23:05:52 +00:00
spectranator
914def23f6 Note dead email address in readme 2025-01-22 20:45:33 +00:00
EmulationEnjoyer
3f6a2bac86 Implement HID function stub "SetGestureOutputRanges" (#105)
Add function stub for "SetGestureOutputRanges" in HID service

Fixes userspace panic when booting Donkey Kong Country Returns HD:

> Debug <Critical> core\hle\service\service.cpp:operator ():78: Assertion Failed!
Unknown / unimplemented function '92(<unknown>)': port='hid' cmd_buf={[0]=0x6, [1]=0x8000000C, [2]=0x1, [3]=0x0, [4]=0x4F434653, [5]=0x0, [6]=0x0, [7]=0x0, [8]=0x49434653}
> Service.AM <Info> core\hle\service\am\service\application_functions.cpp:SetTerminateResult:187: (STUBBED) called, result=0x1a80a (2010-0212)
> Debug.Emulated <Critical> core\hle\kernel\svc\svc_exception.cpp:Break:52: Userspace PANIC! info1=0x0000001086D02C4C, info2=0x0000000000000004
> Debug.Emulated <Critical> core\hle\kernel\svc\svc_exception.cpp:operator ():33: debug_buffer_err_code=1A80A
> Debug.Emulated <Critical> core\hle\kernel\svc\svc_exception.cpp:Break:102: Emulated program broke execution! reason=0x0000000000000000, info1=0x0000001086D02C4C, info2=0x0000000000000004

ref: 132077e18f

![](https://i.imgur.com/hbBnlYs.png)

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/105
Co-authored-by: EmulationEnjoyer <emulationenjoyer@noreply.localhost>
Co-committed-by: EmulationEnjoyer <emulationenjoyer@noreply.localhost>
2025-01-22 20:42:58 +00:00
Laconix
bc4239dd9f Turn off predictive back gesture to fix hardware back button not working in android 13 or higher 2025-01-10 06:17:51 +00:00
FireBurn
20ac5cd42b Include memory header
This stops build failures for missing std::shared_ptr which is in multiple files

Signed-off-by: FireBurn <mike@fireburn.co.uk>
2025-01-10 06:16:46 +00:00
reg_server
d306ebea30 Linux Build Fixes
- fixed AppImage not accepting arguments (for example -f -g ROM_file to start directly)
- adjusted AppImage build.sh so it can find Qt libs on Fedora (#98)
- perl-Digest-SHA package is needed for shasum on Fedora
- added option do disable linking against LLVM 17 (Steam Deck specific)
- updated build-for-linux.md (Steam Deck specific)
2025-01-03 19:49:07 +01:00
spectranator
02cfee3f18 Remove hard fmt version requirement in main CMakeLists.txt 2024-12-15 17:51:34 +01:00
Zuckerwatte1
86f6184375 Add 12gb DRAM option (#90)
This adds the option to allow the emulator to use 12gb of RAM for something like really big texture packs.

Co-authored-by: smiRaphi <neogt404@gmail.com>
Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/90
Co-authored-by: Zuckerwatte1 <zuckerwatte1@noreply.localhost>
Co-committed-by: Zuckerwatte1 <zuckerwatte1@noreply.localhost>
2024-12-15 15:14:54 +00:00
spectranator
a04ba7cd1e Mention IRC in readme 2024-11-23 16:49:24 +00:00
EmulationEnjoyer
bb142c9657 shader/recompiler: Revert NVN storage buffer bias range
- Return to original NVN bias values which better cover the full range of storage buffer accesses:
- offset_begin: 0x110 -> 0x100
- offset_end: 0x610 -> 0x700

The wider range ensures we catch all valid storage buffer accesses
while maintaining the same alignment requirements.

ref: 2564e721df
2024-11-15 12:16:49 +00:00
EmulationEnjoyer
266eb0d318 arm: Skip duplicate consecutive addresses in backtrace output
ref: aa56430f2a
2024-11-15 12:16:49 +00:00
EmulationEnjoyer
d231c26e22 chore(HLE): Update HLE API version constants
- Updated Horizon OS version to 19.0.1 and NintendoSDK version to 1.0. Adjusted `VERSION_HASH`, `DISPLAY_VERSION`, and `DISPLAY_TITLE` to match the new firmware versions.

ref: fcb6444037
2024-11-15 12:16:49 +00:00
EmulationEnjoyer
247f61e1f9 perf(VideoCore): Refactor DispatchIndirect
- Added automatic safe or unsafe processing for better emulation accuracy.

ref: 8cae0310e3
2024-11-15 12:16:49 +00:00
EmulationEnjoyer
154aab7c4b feat(shader): implement geometry shader invocation info
- Update EmitInvocationInfo in SPIRV backend to handle geometry shader stage

ref: 1266fad681 (diff-4cbf73a98ed4ad649a4a6f38b569bc31fcf68cf7)
2024-11-15 12:16:49 +00:00
EmulationEnjoyer
56f062ac4d core: Add new error modules to ErrorModule enum
- Add support for homebrew error modules to improve error handling
2024-11-15 12:16:49 +00:00
EmulationEnjoyer
05ccbaa8fa Update src/audio_core/common/feature_support.h
Updated AudioCore Revision from 11 -> 13
2024-11-15 12:16:49 +00:00
EmulationEnjoyer
95ef5431c5 feat: update HLE API version constants to Horizon OS 19.0.0
- Updated Horizon OS version constants from 12.1.0 to 19.0.0.
- Changed the version hash from `76b10c2dab7d3aa73fc162f8dff1655e6a21caf4` to `52971eebbba7ab9e6e23d73753aa63e0c3794b16`.
- Updated `DISPLAY_TITLE` and `DISPLAY_VERSION` to reflect the new firmware version "NintendoSDK Firmware for NX 19.0.0-4.0".
- Incremented Atmosphere release version constants to 1.8.0.

ref: 3276bf8780
2024-11-15 12:16:49 +00:00
anon
066d0e7eaa merge AppImage builder into main repo with revised linux guide (#78)
Tested as working.

It is self-contained with no dependencies, uses relative paths, downloads what it needs on the fly, requires the main repo to already be cloned and built for native linux, so it doesn't need to be a separate repo.

- Copied the `build.sh` file and `assets` folder into a new `AppImageBuilder` folder on the torzu repo root.
- Created a `AppImage-build.sh` shortcut on the repo root that checks if an executable is already in `build/bin`. If it doesn't find one, it prompts the user to build a native version first. If it does find one:
    - enters the `AppImageBuilder` folder
    - runs the command `./build.sh ../build ./torzu.AppImage`, using the correct relative path to the build folder (if they followed the build instructions as directed)
    - moves the resulting `torzu.AppImage` executable back into the main `torzu` folder
    - returns back to the main folder and shows current directory contents
- Added relevant entries to `.gitignore`
- Added AppImage section to linux build guide, with some clarifying explanation for Flatpaks, and section separators

Co-authored-by: anon <anon@no.reply>
Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/78
Co-authored-by: anon <anon@noreply.localhost>
Co-committed-by: anon <anon@noreply.localhost>
2024-11-15 12:11:25 +00:00
anon
14d40552e5 dma_pusher.cpp: remove now unused variable that breaks the android build (#76)
Completes http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/71

Discovered when building android version on debian via command line.

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/76
Co-authored-by: anon <anon@noreply.localhost>
Co-committed-by: anon <anon@noreply.localhost>
2024-11-03 12:34:19 +00:00
lui
9efce71072 externals: update fmt to 11.0.2 and vcpkg to 2024.09.30 (#68)
Updated to fmt 11 with the required source changes for it to work.

Also updated vcpkg for this, and as an added benefit it fixes the `Unable to find a valid Visual Studio instance` error, and the VS 2019 build tools are no longer required. Just make sure to delete the existing downloaded vcpkg tool and binaries in `externals/vcpkg` if you have compiled before, or else it will continue to use the old version and give the error.

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/68
Co-authored-by: lui <lui@vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion>
Co-committed-by: lui <lui@vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion>
2024-11-03 12:25:47 +00:00
anon
5de1cb53bb update-build-guides (#65)
Windows

- added summary Overview section for MSVC
- consolidated Visual Studio settings screens for C++ etc at the beginning (instead of providing them in the CMake GUI steps if they get an error)
- added notes to dependencies, to add them to Windows PATH if they ask for it
- moved the MSVC command line section (from the very bottom of the page under the Clion section), to between "dependency installation" and the "GUI method of building"
    - prioritizing MSVC command line over GUI since it's much shorter and easier if all dependencies are installed correctly
- moved/duplicated contents of MSVC "Clone with Git" section into both the "MSVC command line" and "MSVC GUI" sections, so all steps are together for each and not split up
- changed some header sizes for better separation
- added a large separator bar area between MSVC, MinGW and CLion sections, and smaller separator bar areas between the three main sections of MSVC for readability
- added a specific repo-to-use note to the Clion cloning section
- corrected repo urls

Linux/Debian

- added flatpak build section at the top, labeled the existing as native builds
- added qttools5-dev and libva-dev to dependency cut and paste (were needed to compile on Debian)
- corrected repo url

MacOS

- removed redundant to-do items
- corrected repo url

Android

- corrected repo url

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/65
Co-authored-by: anon <anon@noreply.localhost>
Co-committed-by: anon <anon@noreply.localhost>
2024-10-26 16:11:23 +00:00
cow
85dc40ad23 kepler_compute: use safe memory read
If unsafe read is done there can sometimes be corrupt data in the
KeplerCompute::ProcessLaunch qmd structure.

Fixes GPU crashes in 'Princess Peach: Showtime!' when using vulkan
renderer. Requires using "Accuracy Level High" (crashes will still
happen if using "Normal").

Tested on Radeon 6750XT, Linux 6.11.2, Mesa 24.2.5 (RADV driver).

Unsafe read was introduced in 115792158d3ac4ca746d1775f2381e8f8dd18582
"VideoCore: Implement DispatchIndirect"

How did I debug this:
- Used VK_LAYER_KHRONOS_validation which found invalid vkCmdDispatch
  (along with a lot of other noise!)
- Instrumented all calls to vulkan Dispatch(), set breakpoint when
  grid_dim_x > 1024 (an obviously invalid value). Found dispatch came
  from RasterizerVulkan::DispatchCompute().
- Commented out DispatchCompute() entirely, game runs with no crashes
  but some graphics effects are missing.
- Keep going one layer up, observe corrupted `launch_description` in
  KeplerCompute::ProcessLaunch()
- Attempted safe ReadBlock (`which = VideoCommon::CacheType::All`)
  instead of ReadBlockUnsafe in KeplerCompute::ProcessLaunch(), did not
  help
- Go one layer up to DmaPusher. Switch to safe_process(). No more
  corrupt `launch_description`.
2024-10-22 17:48:59 +00:00
spectranator
f45341ef55 Readme: Moved "Move away from Codeberg" section further down 2024-10-22 17:41:12 +00:00
anon
4259889895 Remove "/DEBUG" flag from CMAKE_EXE_LINKER_FLAGS_RELEASE
lol, has the emulator been running in a slower debug mode, even in release builds, ever since it was yuzu? This has been there since 4176. I was wondering why *.pdb debugging files still get generated.
2024-10-13 04:29:29 +00:00