Commit Graph
39251 Commits
Author SHA1 Message Date
Martino Fontana b23f8d91b0 JitRegCache: Refactor using a data oriented design
Replace the "array of structure" design with a "structure of array". Boolean members are represented by a bitset.
The main benefit is that filtering the registers in regcache operations can be done in one simple bitwise instruction.
This is especially useful on `Flush`, as callers don't need anymore to limit the iterated registers for performance reasons.

The change only applies to the x86 regcache.
2026-11-22 17:17:03 +01:00
Jordan Woyak 2b62267541 ControllerInterface/SDL: Replace empty string comparisons with .empty() function calls to fix clang-tidy warnings. 2026-11-21 15:05:45 -06:00
Jordan Woyak 737fd4cbb0 ControllerInterface/SDL: Use jthread/stop_token to clean up hotplug thread shutdown and eliminate some members.
Also rename the thread since the name was too long for Linux and "Thread" is redundant.
2026-11-21 15:05:45 -06:00
Jordan Woyak 6071d649e7 ControllerInterface/SDL: Fix SDL_RegisterEvents error handling. It returns 0 on error, not -1. 2026-11-21 15:00:43 -06:00
Jordan Woyak 646e8912d1 ControllerInterface/SDL: Remove SDL_UpdateGamepads call. It's unnecessary since we're polling events. 2026-11-21 15:00:43 -06:00
Jordan Woyak b2c2c21e58 Merge pull request #15008 from jordan-woyak/wm-real-remove-config-change-callback
HW/WiimoteReal: Fix crash when UI disconnects a Balance Board.
2026-11-20 22:11:45 -06:00
Jordan Woyak 7dac5ec790 Merge pull request #14985 from jordan-woyak/log-manager-minor-optimizations
Common/Logging: Minor cleanups and optimizations.
2026-11-20 19:37:06 -06:00
Jordan Woyak 6d85d1c50b Merge pull request #15045 from JoshuaVandaele/installer-i-hardly-know-her
Remove installer leftovers
2026-11-20 19:36:36 -06:00
Joshua Vandaële 38b8815c2f Remove installer leftovers 2026-11-20 04:31:37 +01:00
Acts1631 fbe996f380 InputCommon: validate dynamic texture regions
Dynamic input texture JSON could specify rectangles outside the base
image. CopyImageRegion then wrote replacement pixels beyond the
destination vector, allowing a crafted local texture pack to corrupt
the heap.

Validate coordinates and image bounds at the parser and caller. Make
CopyImageRegion independently reject invalid source or destination
ranges.
2026-11-19 09:38:28 -05:00
Jordan Woyak 2fe1628662 Merge pull request #14973 from jordan-woyak/cubeb-backend-selection
CubebUtils: Allow selecting the backend that Cubeb uses.
2026-11-18 13:26:48 -06:00
Jordan Woyak 438b557ac3 Merge pull request #15037 from JoshuaVandaele/ra-off-fix
InterfacePane: Fix regressions introduced in #14760
2026-11-18 02:01:47 -06:00
JMC47 21355ea0c5 Merge pull request #14995 from Tilka/ax_fixes
AX: fix three bugs
2026-11-17 22:02:26 -05:00
Joshua Vandaële f9fcde943c InterfacePane: Fix regressions introduced in #14760 2026-11-18 03:22:48 +01:00
Jordan Woyak 1f32d345e2 DolphinQt: Update the microphone device lists on config change to handle different audio backend selections. 2026-11-17 13:22:28 -06:00
Jordan Woyak 2281d37b0c DolphinQt: Refresh audio routing device lists on backend change. 2026-11-17 13:03:41 -06:00
Jordan Woyak 65b97f5049 DolphinQt/Config: Add SetOptions function to ConfigStringChoice. 2026-11-17 13:03:41 -06:00
Jordan Woyak d1f208481c DolphinQt: List the Cubeb backends in the Audio settings pane. 2026-11-17 13:03:41 -06:00
Jordan Woyak a906348b91 CubebUtils: Add functions to get a list of supported backend names and the display name for a backend. 2026-11-17 13:03:41 -06:00
Jordan Woyak 2e0a63c918 CubebUtils: Initialize Cubeb based on the configured audio backend even when it's set to just "Pulse" or "ALSA". 2026-11-17 13:03:41 -06:00
Jordan Woyak eaad965f57 AudioCommon: Allow MAIN_AUDIO_BACKEND to optionally specify the Cubeb backend after a slash. e.g. "Cubeb/wasapi". 2026-11-16 18:04:59 -06:00
Jordan Woyak 8169c72ce6 CubebUtils: Initialize cubeb_device_collection objects to avoid UB inside cubeb enumerate_devices calls on failure. 2026-11-16 18:04:59 -06:00
Jordan Woyak 5140482a6f Merge pull request #15026 from dokslade/ogl-screenshot-offset
VideoCommon: Fix OpenGL screenshots of partial XFB copies
2026-11-16 18:03:02 -06:00
JosJuice c5069249b4 Merge pull request #15027 from SuperSamus/regcache-small-cleanup
JitRegCache: Small cleanup
2026-11-16 20:46:42 +01:00
JosJuice 0a6ed419eb Merge pull request #14760 from JoshuaVandaele/hardcore-state
Settings: Simplify debug mode
2026-11-16 20:38:01 +01:00
Jordan Woyak d5a4f48d9b Merge pull request #14774 from sepalani/mic-dedup2
Refactor the GameCube microphone code
2026-11-16 12:24:20 -06:00
Joshua Vandaële e9da2a4832 Settings: Simplify debug mode
We now just pass a signal to tell the UI that hardcore mode has been turned on/off, and we replace Settings::IsDebugModeEnabled with Config::IsDebuggingEnabled, which always returns false if hardcore is on.
2026-11-16 01:01:12 +01:00
Jordan Woyak 2d451da728 Merge pull request #14276 from JoshuaVandaele/mo-config-controls
Use more ConfigControls
2026-11-15 17:32:18 -06:00
Jordan Woyak 545bf5d5cc Merge pull request #15004 from dokslade/interp-addme-carry
Interpreter: Fix addme/subfme carry and share add/subtract code
2026-11-15 16:56:08 -06:00
Jordan Woyak 4f9d60d80e Merge pull request #15025 from dokslade/elf-mem1-filter
Boot: Restore MEM1 filtering of IOS ELF segments
2026-11-15 16:48:38 -06:00
Martino Fontana e9517cfea2 JitRegCache: Init emitter in constructor 2026-11-15 22:31:06 +01:00
Martino Fontana 2f6b10035d JitRegCache: Rename "default location" to "PPC State"
More intutive name, and more consistent with ARM's RegCache.
2026-11-15 22:31:06 +01:00
Martino Fontana 3e33294292 JitRegCache: Don't store m_default_location
The register cache is inconsistent in using that or getting it from `GetDefaultLocation(preg_t preg)`.
Considering how simple that function is, let's only use that and remove some state.
2026-11-15 22:31:06 +01:00
Martino Fontana 14d5fe714d BitSet: Some small additions
Also add requirements for using range functions.
And micro-optimize testing if a bit is set (GCC and MSVC struggle to emit `bt` or `tbz`/`tbnz` with `bs & (1 << n)` compared to `(bs >> n) & 1`).
2026-11-15 22:31:04 +01:00
JosJuice 19d0dfb0a9 Merge pull request #14834 from JosJuice/jitarm64-small-fixupbranch
Arm64Emitter: Make FixupBranch smaller
2026-11-15 18:54:32 +01:00
dok.slade c6c57d5709 VideoCommon: Fix OpenGL screenshots of partial XFB copies
ScaleTexture flipped its rectangles for backends with a lower-left
origin, but textures are stored top row first and the copy shader
keeps the row order, so the flip is only a no-op for full rectangles.
With a sub-rectangle, OpenGL frame dumps and screenshots read the
bottom of the texture instead of the top, and came out shifted up with
a black band at the bottom.

Pass the rectangles through unchanged. Other backends and callers using
full rectangles are not affected.

Fixes https://bugs.dolphin-emu.org/issues/12286
2026-11-15 14:24:38 +00:00
Martino Fontana c73fcc1530 Jit64: More intuitive register reversion 2026-11-15 13:00:33 +01:00
dok.slade d706251c3e Boot: Restore MEM1 filtering of IOS ELF segments
Since PR #14115, writeAddr is p_paddr | 0x80000000, so comparing it against
the physical RAM size skipped every segment and broke booting MIOS
(GameCube discs from the Wii Disc Channel).

Mask to the physical address before comparing.

Fixes https://bugs.dolphin-emu.org/issues/14176
2026-11-15 12:36:01 +01:00
JosJuice f7a0bf5bd6 Merge pull request #14888 from SuperSamus/dcbx-dont-clear-icache
Jit: Don't invalidate instruction block cache with dcbx
2026-11-15 12:29:37 +01:00
JosJuice 80a1a25fbc Merge pull request #14966 from SuperSamus/optimize-efb-xfb-uninitialization
TextureCacheBase: Optimize EFB and XFB uninitialization
2026-11-15 12:27:38 +01:00
Tillmann Karras 83f79b4336 AX: rename ITD fields (NFC) 2026-11-14 23:25:53 +00:00
Tillmann Karras f86f32a6f2 AX: rename ADD/SUB_TO_LR commands (NFC) 2026-11-14 23:25:53 +00:00
Tillmann Karras 18b7af84df AX: fix GC surround bug 2026-11-14 23:25:53 +00:00
Tillmann Karras abeb94c457 AX: fix Wii surround bug 2026-11-14 23:21:34 +00:00
Tillmann Karras 3837bc7c75 AX: always set de-pop values on Wii 2026-11-14 22:44:44 +00:00
Jordan Woyak 334334d42a Merge pull request #15006 from Sintendo/mfspr-movsx
Jit64: mfspr - Sign-extend slice_length
2026-11-14 14:57:32 -06:00
Jordan Woyak f9cb5f1c08 Merge pull request #13704 from unexploredtest/cmake_source
CMake: Fix relative pathing when project is imported
2026-11-14 13:49:30 -06:00
JosJuice be0e304c02 Merge pull request #14978 from JoshuaVandaele/quick-stop-hang
CPU: Fix quickly-stopped games hanging Dolphin
2026-11-14 20:03:07 +01:00
JosJuice 761713cec9 Merge pull request #15012 from dokslade/gl-x11-event-mask
GLX11Window: Don't override the host's event mask on the parent window
2026-11-14 15:51:27 +01:00
Jordan Woyak 5c496d1838 Merge pull request #15019 from jordan-woyak/perf-track-fps-fix
PerformanceTracker: Fix broken FPS calculation on Windows after a multi-second delay.
2026-11-13 14:43:59 -06:00