Commit Graph
11175 Commits
Author SHA1 Message Date
Ygor Dreyer 6854a57ec7 Android: skip directories in GPU driver scan (#2592) 2026-10-08 18:11:27 +01:00
PabloMK7 79eb14953c core: Improve GDB and RPC packet handling (#2631)
* core: rpc: revamp rpc server and add new commands

* core: Move GDB packet handling to the frame limiter as well.

* core: gdb: Improve packet handling
2026-10-08 18:10:18 +01:00
PabloMK7 b79d6283e0 core: pm: Add DebugNextApplicationByForce (#2640) 2026-10-08 18:09:28 +01:00
PabloMK7 539d9ef732 core: kernel: Allow shared page on MapProcessMemoryEx (#2641) 2026-10-08 18:08:17 +01:00
Kinglink 1fc22c979e citra_qt: Remove Toggle Frame Advance Hotkey (#2560)
Previously f8e9e459fe removed the functionality for Toggle Frame Advance but did not remove the Hotkey leaving a dead hotkey.

Resolves https://github.com/azahar-emu/azahar/issues/2540
2026-10-08 17:43:56 +01:00
OpenSauce04 0891cb71c1 vulkan: Fix incorrect xBRZ texture filter appearance 2026-10-08 17:40:10 +01:00
Razor221 9e6f523a57 Fix Libretro core crash on unload by correctly joining logger thread (#2572) 2126.1.2 2026-09-20 22:18:12 +01:00
Wunkolo 3e574df8c1 renderer_vulkan: Fix shadow-texture usage determination
The shadow-texture should only actually be binded if shadows are enabled and if the shadow-texture slot is actually enabled. Otherwise the null-surface should be binded. This ensures that we are are not binding whatever texture slot the register happens to be set to as a shadow-texture. This avoids an RGBA4 texture from being binded into the shadow-texture slot in Monster Hunter 4 Ultimate when opening the equipment set screen.

Addresses https://github.com/azahar-emu/azahar/issues/2531
2126.1.1
2026-09-11 21:53:16 +01:00
OpenSauce04 b9445a3ee0 qt: Add build variant info to log and about menu
This technically applies to all platforms, but only currently does anything useful on Windows
2026-09-11 21:52:33 +01:00
OpenSauce04 5f9cf75d08 android: Fix default value mismatch for skip duplicate frames setting 2026-09-11 13:31:39 +01:00
PabloMK7 e1db498613 core: Make "skip present duplicate frames" disabled by default (#2530) 2026-09-11 13:31:27 +01:00
Wunk 8c4310384e renderer_vulkan: Allow instance creation in systems with no layers. (#2528) 2026-09-11 13:31:13 +01:00
OpenSauce04 26e608f6fa Updated translations via Transifex 2126.1 2026-09-09 16:25:05 +01:00
OpenSauce04 073110cb44 tools: Added basic-mxe-config.sh script 2126.1-rc5 2026-09-07 23:44:04 +01:00
Wunkolo 0f47199499 renderer_gl: Fix unreliable resource-tick causing interframe memory-leaks
OpenGL does not have tight synchronization primitives like Vulkan and instead must use whole frame-boundaries to determine when it is safe to delete a texture. Updates the `current_frame` index from renderer-base to be a 64-bit integer and derive the OpenGL texture-runtime resource-tick to be from the renderer's frame-index.
2026-09-07 23:18:30 +01:00
OpenSauce04 4091fd45e5 tools: Add per-architecture scripts for build environment entry
It is sometimes necessary to use specifically x86_64 for build testing. An ARM64 script was also included for completeness
2026-09-07 23:03:27 +01:00
OpenSauce04 abdc43af0c Updated translations via Transifex 2126.1-rc4 2026-09-07 16:13:17 +01:00
OpenSauce04 9a604ea6bc configure_system.ui: Fix minor grammatical error in a message 2026-09-07 15:09:41 +01:00
OpenSauce04 a1f8e953ad android: Display "Invalid ROM" label in game list for invalid ROMs 2026-09-07 13:27:49 +01:00
Wunk d971be614a renderer_vulkan: Sanitize layers list during initialization (#2511)
We do this for extensions, but should also be doing it for layers as well to ensure we are not enabling instance-layers that the system does not support.

Addresses https://github.com/azahar-emu/azahar/issues/2507
2026-09-07 14:14:54 +02:00
PabloMK7 b0d6d9a423 common: Make exception handler disabled by default (#2505) 2026-09-06 13:38:08 +02:00
OpenSauce04 efe51c6528 android: Mark more strings as untranslatable 2026-09-05 23:29:19 +01:00
OpenSauce04 ac95f6f69d Updated translations via Transifex 2126.1-rc3 2026-09-04 13:45:55 +01:00
OpenSauce04 462617639f android: Game region display adjustments
- Make game region string translatable in the frontend
- Add a "Region:" label to the game about screen
2026-09-04 13:31:20 +01:00
OpenSauce04 6127ee7ab6 android: Mark system region codes as untranslatable 2026-09-04 13:31:20 +01:00
Wunkolo c2783e1107 video_core: Remove framebuffers of upscaled recycled textures
When recycled textures get upscaled, there may still be previously created framebuffers holding onto stale textures that need to be cleared.
2026-09-04 12:16:55 +02:00
Wunkolo aaa3d30324 renderer_vulkan: Invalidate copy texture after ScaleUp
The copy-texture slot will hold onto a texture of the previous size still. Should be destroyed during a ScaleUp so that the next call to `CopyImageView` can recreate this handle at the new size. Fixes recycled surfaces that get upscaled.
2026-09-04 12:16:55 +02:00
Wunkolo 604ade099d video_core: Update surface recycling criteria
Recycled surfaces may only be upscaled, not downscaled. Recycled
surfaces should be less than or equal to the requested resolution-scale
to ensure we are only upscaling surfaces.
2026-09-04 12:16:55 +02:00
Wunkolo ab89916d1a renderer_vulkan: Destroy handles before recreating in-place
If a handle is already created, then calling `Create` on it again will just override the vulkan handles without cleaning them up first.
`Destroy` should be called within `Create` to ensure that all the handles are properly cleaned up before recreating the handles. This also resolves some memory-leaks that I was seeing upon shutting down the program.
2026-09-04 12:16:55 +02:00
Wunkolo d216f961ab video_core: Fix surface recycling implementation
Recycling textures from the deletion-queue was creating an inter-frame
dependency. Surfaces in the deletion-queue may possibly be in use still
by a previous frame. When they get picked up to be recycled, it can
possibly be up-scaled, leading to a race condition where a previous
frame is still using the texture while a new frame is trying to upscale
the texture, or do other destructive operations that modify the
image-handle, for further use. This is fixed by ensuring that we use the
deletion-queue's timestamp to indicate that the texture is actually free
for re-use by the current frame.
2026-09-04 12:16:55 +02:00
Wunkolo 2ef875ac1e video_core: Separate resource-tick and resource-free-tick
These two functions allows the texture-runtime implementation to indicate, with greater precision, when the GPU is precisely done with textures so that they can be deleted. For the vulkan implementation in particular, this allows the precise GPU tick value to be used to indicate when textures are able to be safely deleted.

Use an async flush rather than a flush+wait in vulkan's implementation of `Finish()` as well since we just need to increment the tick here.
2026-09-04 12:16:55 +02:00
Wunkolo 8f14065394 renderer_vulkan: Fix shadow texture utility descriptor-set binding
Previously we were depending on the fact that pass that wrote to the shadow map
also wrote to the descriptor-set that further draw-calls used. But this was not
viable because it created an implicit intra-frame dependency that lead to
crashes. The previous fix broke this dependency by binding the null-texture
in the case that the current framebuffer is not writing to the depth-buffer,
but we also need to handle the case where a draw-call is just _reading_ from
the shadow-texture because a light was configured with a shadow-map.
This should handle all the edge-cases where a draw-call that does not
use any shadow-mapping will get the null-texture. This also adds the
storage-texture usage bit to RGBA8 textures initially since it may later
be found out that the texture is a shadow-source. Vulkan already
mandates that RGBA8 textures support the storage-bit, technically, but
this should still be set.

For later, check out if `nullDescriptor` is supported so that a null
handle can be written rather than using the null surface here.
2026-09-04 12:16:55 +02:00
Wunkolo d08a7c6545 video_core: Fix holding onto stale shadow-buffer images
The shadow-texture should be set to _null_ rather than leaving it unchanged in the case that we are not shadow-rendering.

Otherwise, on Vulkan, the descriptor set will hold onto references to textures for very long periods of times, possibly holding onto textures queued for deletion at a later time. This was causing command buffers to possibly depend on textures that were queued for deletion hundreds of frames later, leading to crashes.
2026-09-04 12:16:55 +02:00
Wunkolo 079bda1f30 video_core: Fix latent surface garbage collection
The rasterizer cache garbage collection criteria was interpreting tick-values
incorrectly, and was only incidentally able to garbage collect textures
within 1 frame of latency. Textures that were invalidated farther back in
time, such as when changing the rendering resolution and finding out that they
need to be deleted later on, were not being properly deleted despite having
older tick values(lower tick values). This fixes the issue by using the
correct `<=` comparison and also fixes the Vulkan implementation of
`GetResourceTick` to avoid a race-condition by ensuring we are
using the latest tick value from the GPU and not the last-known
tick-value.

Fixes https://github.com/azahar-emu/azahar/issues/2472
2026-09-04 12:16:55 +02:00
OpenSauce dde53c00dc stale.yml: Don't auto-close issues with "help wanted" tag 2026-09-01 12:56:14 +01:00
OpenSauce04 6776cc0dcc dsp_interface.cpp: Simplify broken check that can never fail
Fixing the check to work correctly in a previous PR caused major audio issues. The old "incorrect" behaviour has existed for 3 years, so we can probably just leave things as they were for now until we can get a proper fix together.
2026-09-01 12:18:54 +01:00
OpenSauce04 2c40780d2a Revert "audio_core: Fix time stretching always being applied (#2439)"
This reverts commit a9707fdd88.
2026-09-01 12:18:54 +01:00
demetriospantaleao-del c07f2cc96d video_core: preserve SurfaceBase state for OpenGL custom surfaces (#2481)
## Summary

Preserve the complete `SurfaceBase` state when creating an OpenGL surface for a custom texture.

The OpenGL custom surface constructor currently uses:

```cpp
SurfaceBase{surface, {}}
```

while the equivalent Vulkan implementation uses:

```cpp
SurfaceBase{surface}
```

Passing an empty flag set causes the replacement OpenGL surface to lose its existing surface flags, including `SurfaceFlagBits::Registered`.

This can later trigger the assertion:

```text
Assertion Failed!
Trying to unregister an already unregistered surface
```

when the surface is passed to `UnregisterSurface()`.

## Change

```diff
-    : SurfaceBase{surface, {}}, driver{&runtime_.GetDriver()}, runtime{&runtime_},
+    : SurfaceBase{surface}, driver{&runtime_.GetDriver()}, runtime{&runtime_},
```

This also makes the OpenGL custom surface constructor consistent with the Vulkan implementation.

## Testing

Tested on Azahar 2126.0 (`fbd3fb0`).

I reproduced the issue using:

- The Legend of Zelda: A Link Between Worlds
- OpenGL backend
- Henriko Magnifico's 4K texture pack
- Custom textures enabled
- 10x internal resolution

With the original code, the game consistently hit:

```text
Trying to unregister an already unregistered surface
```

With `SurfaceBase{surface}`, the game ran normally with the custom texture pack enabled.

The test ran for approximately 3 minutes and ended normally, with no:

```text
Assertion Failed
Trying to unregister an already unregistered surface
<Critical>
```

This addresses the OpenGL custom texture crash reported in #2116.

Fixes #2116
2026-08-30 13:42:33 +02:00
OpenSauce04 8b66c84925 Update translations via Transifex 2126.1-rc2 2026-08-27 13:41:55 +01:00
OpenSauce04 501bd03353 .tx/config: Add handling for UK English translation 2026-08-27 13:41:46 +01:00
OpenSauce04 5a349fdc42 android: Fix touch input not accounting for expand to cutout setting 2026-08-27 10:49:00 +01:00
OpenSauce04 d4509b01ea android: Adjust default portrait button layout face button positioning
Moves the face buttons upwards slightly to account for slight positioning changes after the Android 17 edge-to-edge migration
2026-08-27 10:33:49 +01:00
OpenSauce04 3d9a8e6866 android: Fix on-screen overlay going off the side of the screen when reset/inited 2026-08-27 09:35:03 +01:00
OpenSauce04 48adcefe4a Updated translations via Transifex
New en_GB translation omitted due to proper handling not yet being implemented
2126.1-rc1
2026-08-26 15:52:15 +01:00
Davey Hughes 70149e83a2 video_core: Keep the right eye disabler inert until its setting is read (#2459)
RightEyeDisabler::enable_for_frame defaulted to true and is only refreshed
from Settings::values.disable_right_eye_render in ReportEndFrame(), which
first runs at the initial buffer swap. Until then the disabler was active
even for users who have the option turned off, and it can suppress a command
list during that window.
2026-08-26 16:20:16 +02:00
OpenSauce04 0e1a7e1cc5 android: Make "Playtime" label in about game menu translatable 2026-08-26 15:18:54 +01:00
OpenSauce04 d8d9fecd78 ci: Unify AppImage builds due to resolved issues 2026-08-25 14:47:33 +01:00
Angelico 5a1c580d6a audio_core: Fix live looping PCM playback (#2454)
* audio_core: Fix live looping PCM playback

* Fix format
2026-08-25 15:39:25 +02:00
PabloMK7 083febb386 android: Fix issues when starting EmulationActivity directly (#2452) 2026-08-24 16:23:09 +02:00
PabloMK7andU-DESKTOP-7SFAKTP\Ron 93b81e628e core: nwm: Move nwm:uds signal handling to emulation thread (#2405)
* core: nwm: Get HLE lock on all wifi packet reception

* nwm: Move packet handling to the emulation thread

* Change async packet queue to async event queue

* Add all UDS events as possible async events

* Added async event signal optimization for single threaded NWM

* Register thread ID only once and other minor things

---------

Co-authored-by: U-DESKTOP-7SFAKTP\Ron <lannoene@gmail.com>
2026-08-23 23:17:11 +02:00