summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2026-10-24VertexLoaderARM64: Optimize RGB565Sintendo
This replaces the old instruction sequence with one that is considerably shorter. Main ideas are as follows: - Use AND with constant mask to isolate the needed bits. - Use ORR + LSL/LSR to shift the bits into position and combine in one instruction where possible. - Red and blue are already sequential, so don't need to wait for the byteswap. This is especially handy for red, where the bits are already where they need to be. - Red and blue can be expanded from 5 to 8 bits together. Before: ldurh w14, [x0, #0x1] rev16 w14, w14 and w15, w14, #0x1f orr w15, wzr, w15, lsl #3 orr w15, w15, w15, lsr #5 orr w16, wzr, w15, lsl #16 ubfx w15, w14, #5, #6 orr w15, wzr, w15, lsl #2 orr w15, w15, w15, lsr #6 orr w16, w16, w15, lsl #8 ubfx w15, w14, #11, #5 orr w16, w16, w15, lsl #3 orr w16, w16, w15, lsr #2 orr w16, w16, #0xff000000 str w16, [x1, #0xc] After: ldurh w14, [x0, #0x1] rev16 w15, w14 bfi w14, w14, #11, #13 and w16, w14, #0xf800f8 and w14, w14, #0xe000e0 orr w16, w16, #0xff000000 orr w16, w16, w14, lsr #5 and w14, w15, #0x7e0 and w15, w15, #0x600 orr w14, w14, w15, lsr #6 orr w16, w16, w14, lsl #5 str w16, [x1, #0xc]
2026-10-23PowerPC/MMU: Use effective address for special-case unaligned storesscatterflower
2026-10-23Revert "msvc: use std::chrono for GetLocalTimeSinceJan1970"OatmealDome
This reverts commit 86da6c98fbd229d87de7cf8b9c7eb94c16923829.
2026-10-22Skylanders: Replace mbedtls_aes usage with Common::AES and minor warning ↵Jordan Woyak
cleanups.
2026-10-22Merge pull request #14913 from jordan-woyak/md5Jordan Woyak
Common: Introduce MD5Context class and ComputeMD5 function to minimize mbedtls dependence.
2026-10-22JitArm64_SystemRegister: mfspr - Sign extension nitSintendo
This instruction effectively performs the following computation: ``` Xresult = SXTW(slice_length) - Xresult + global_timer; ``` ARM64 has a dedicated sign extension instruction, but also allows this sign extension to happen as part of many arithmetic operations. By reordering the computation, we can take advantage of this: ``` Xresult = global_timer + SXTW(slice_length) - Xresult; ``` Before: ``` ldr w24, [x29, #0x2f0] scvtf s8, w24 ldr s9, [x27, #0x20] fmul s8, s8, s9 fcvtzs x25, s8 ldp x24, x23, [x27] sxtw x23, w23 sub x25, x23, x25 add x25, x25, x24 ldp x24, x23, [x27, #0x10] sub x25, x25, x23 mov x23, #-0x5555555555555556 ; =-6148914691236517206 add x23, x23, #0x1 umulh x25, x25, x23 add x25, x24, x25, lsr #3 str x25, [x29, #0x770] ``` After: ``` ldr w24, [x29, #0x2f0] scvtf s8, w24 ldr s9, [x27, #0x20] fmul s8, s8, s9 fcvtzs x25, s8 ldp x24, x23, [x27] add x24, x24, w23, sxtw sub x25, x24, x25 ldp x24, x23, [x27, #0x10] sub x25, x25, x23 mov x23, #-0x5555555555555556 ; =-6148914691236517206 add x23, x23, #0x1 umulh x25, x25, x23 add x25, x24, x25, lsr #3 str x25, [x29, #0x770] ```
2026-10-21DiscIO/VolumeVerifier: Use Common::MD5Context instead of mbedtls.Jordan Woyak
2026-10-21SkylanderFigure: Use Common::ComputeMD5 instead of mbedtls.Jordan Woyak
2026-10-21WiiSave: Use Common::ComputeMD5 instead of mbedtls.Jordan Woyak
2026-10-21Common: Create MD5Context class and ComputeMD5 function to minimize exposure ↵Jordan Woyak
to mbedtls throughout the project.
2026-10-21CMake: Enforce minimum Qt version 6.2Dentomologist
Qt 6.2 has been de facto required since afa6e26e5de58e942c8e7ef3a02632ccfb851d3d added a call to QPixmap::deviceIndependentSize which was introduced in that Qt version. Qt 6.2 was released 5 years ago and we've required 6.2+ for over 2 years, so let's make that requirement explicit in CMakeLists.txt instead of having an apparently random compile error if anyone happens to try building with an older Qt version.
2026-10-20DolphinQt: Fix crash from stale timer event in ToolTipWidgetdebug687
LLM generated explaination for the LLM generated commit: A queued QTimerEvent can be dispatched after the timer was already killed (Qt recycles timer ids), e.g. when a slider is dragged and enter/leave events fire in rapid succession. In that case m_timer_id is empty and dereferencing it in timerEvent() asserts on 'this->_M_is_engaged()' in debug builds, while in release builds it passes a garbage timer id to killTimer(). Only process the event if it matches the timer we are tracking, which also prevents showing a balloon for a stale event.
2026-10-19State: Move logic of selected state to Core/Statevisarhoxha
2026-10-19Jit: Followed unconditional branches are a property added by the Analyzer, ↵Martino Fontana
not something to assume If an unconditional branch is not the last instruction of the block, assuming that this means that the branch must have been followed is an unsafe assumption on how the analyzer works that may not hold true in the future. As a bonus: JitArm64, unlike x86, didn't skip followed `bcx`s. Now it does.
2026-10-18Merge pull request #14934 from iwubcode/efb_interface_remove_globalJordan Woyak
VideoCommon: remove global framebuffer manager from EFBInterface
2026-10-18Merge pull request #14796 from acts-1631/security/traversal-pending-timeoutJosJuice
Traversal: update pending-packet time on socket timeout
2026-10-18Merge pull request #14621 from jordan-woyak/cached-blob-jthreadJosJuice
DiscIO/CachedBlob: Minor cleanup by replacing std::thread with std::jthread.
2026-10-17Merge pull request #14804 from JosJuice/jit-set-lazy-memory-regionJosJuice
Jit: Use LazyMemoryRegion-backed bit sets
2026-10-17Merge pull request #14397 from sepalani/tri-acceptJosJuice
AMMediaboard: Change accept non-blocking logic
2026-10-17Merge pull request #14936 from VampireFlower/breakpoint-gap-centerAdmiral H. Curtiss
Debugger: Fix centering of disabled breakpoints
2026-10-16Merge pull request #14017 from jordan-woyak/fmt-locale-date-fixDentomologist
Core: Movie and State: Add 'L' option to fmt format string to actually use the current locale.
2026-10-16Debugger: Fix centering of disabled breakpointsVampireFlower
2026-10-16VideoCommon: remove global framebuffer manager from EFBInterface and instead ↵iwubcode
pass it in
2026-10-12Fix build failure on libc++/clang 23WalterCool
libc++ 23 enforces the dependency from certain stdlib. In this case, we need <vector> here or build will fail. Signed-off-by: WalterCool <waltercool@slash.cl>
2026-10-11VideoCommon: Use GPR units more in TexDecoder_DecodeImpl_CMPRJosJuice
This improves the time reported by the CMPR unit test. The lowest value is about 14% lower, but there's more variance, with the highest value being similar to before. The instruction count has increased. I'm putting this in a separate commit so the older implementation is available in the commit history for anyone wanting to look at it.
2026-10-11VideoCommon: Add TextureDecoder_ARM64.cppJosJuice
We already have x64 SIMD implementations for decoding most texture formats. This commit adds AArch64 SIMD implementations for all texture formats except the XFB format. (AArch64 was previously using the non-SIMD implementations from TextureDecoder_Generic.cpp.) I left a few TODO comments about things that could be improved using optional ISA extensions. I don't have any immediate plans to work on these. Performance numbers from the unit test are available below. Note that the unit test fits relatively well in cache, so real workloads might spend more time waiting on memory, which could lead to smaller differences between the old and new implementation. Before: I4 took 2676 ns on average (36 iterations) I8 took 3961 ns on average (36 iterations) IA4 took 7304 ns on average (36 iterations) IA8 took 4555 ns on average (36 iterations) RGB565 took 12146 ns on average (36 iterations) RGB5A3 took 33155 ns on average (36 iterations) RGBA8 took 3702 ns on average (36 iterations) C4 (IA8) took 9149 ns on average (36 iterations) C4 (RGB565) took 19398 ns on average (36 iterations) C4 (RGB5A3) took 28533 ns on average (36 iterations) C8 (IA8) took 6766 ns on average (36 iterations) C8 (RGB565) took 15577 ns on average (36 iterations) C8 (RGB5A3) took 18906 ns on average (36 iterations) C14X2 (IA8) took 10603 ns on average (36 iterations) C14X2 (RGB565) took 20700 ns on average (36 iterations) C14X2 (RGB5A3) took 38878 ns on average (36 iterations) CMPR took 6205 ns on average (36 iterations) After: I4 took 2086 ns on average (36 iterations) I8 took 1699 ns on average (36 iterations) IA4 took 1522 ns on average (36 iterations) IA8 took 1673 ns on average (36 iterations) RGB565 took 2443 ns on average (36 iterations) RGB5A3 took 3922 ns on average (36 iterations) RGBA8 took 1983 ns on average (36 iterations) C4 (IA8) took 1646 ns on average (36 iterations) C4 (RGB565) took 2057 ns on average (36 iterations) C4 (RGB5A3) took 1670 ns on average (36 iterations) C8 (IA8) took 3765 ns on average (36 iterations) C8 (RGB565) took 4275 ns on average (36 iterations) C8 (RGB5A3) took 5146 ns on average (36 iterations) C14X2 (IA8) took 5121 ns on average (36 iterations) C14X2 (RGB565) took 5572 ns on average (36 iterations) C14X2 (RGB5A3) took 7142 ns on average (36 iterations) CMPR took 3250 ns on average (36 iterations)
2026-10-10VideoCommon: Rename TexDecoder_DecodeTexel width parameterJosJuice
All existing callers pass the width minus one, and passing the width without subtracting one gives incorrect results. Let's call the parameter image_width_minus_1, like TextureSampler.cpp already calls it.
2026-10-09DiscIO/CachedBlob: Minor cleanup by replacing std::thread with std::jthread.Jordan Woyak
2026-10-09Core: Movie and State: Add 'L' option to fmt format string to actually use ↵Jordan Woyak
the current locale.
2026-10-08HW/Wiimote: Speaker logic accuracy fixes, comments, and code cleanups.Jordan Woyak
2026-10-07Qt: Avoid using casting to wrong type of eventTellowKrinkle
2026-10-07Merge pull request #14896 from jordan-woyak/netplay-gcadapter-fixJosJuice
NetPlayConfigLoader: Fix GCAdapter handling.
2026-10-07Merge pull request #14911 from acts-1631/netplay-save-banner-validationJosJuice
NetPlay: reject oversized Wii save banners
2026-10-07Merge pull request #14912 from acts-1631/savestate-fifo-pointer-validationJosJuice
VideoCommon: validate restored FIFO pointers
2026-10-07Merge pull request #14835 from JoshuaVandaele/vulkan-over-glJosJuice
VideoCommon: Prefer Vulkan over OpenGL on Linux
2026-10-06Merge pull request #14836 from iwubcode/dolphin_texture_refactor_1iwubcode
VideoCommon: refactor texture cache frame buffer copies
2026-10-06Merge pull request #14840 from iwubcode/dolphin_texture_refactor_3iwubcode
VideoCommon: split partial texture update logic from the actual rendering
2026-10-06Merge pull request #14908 from iwubcode/vertex_manager_remove_custom_shadersiwubcode
VideoCommon: remove remnants of old custom shader feature
2026-10-05NetPlayConfigLoader: Fix GCAdapter handling.Jordan Woyak
2026-10-04Merge pull request #14907 from iwubcode/texture_return_sharediwubcode
VideoCommon: return a RcTcacheEntry (shared_ptr) from TextureCacheBase::Load()
2026-10-04VideoCommon: validate restored FIFO pointersActs1631
Save states restored video FIFO pointers from unchecked offsets. A crafted offset could place a pointer outside its backing allocation and turn the next gather-pipe copy into an out-of-bounds native write. Require pointer offsets to stay within their backing array and reject a state when either offset is invalid or the read pointer follows the write pointer.
2026-10-04NetPlay: reject oversized Wii save bannersActs1631
The save sync parser preserved an oversized banner length after limiting the copy into the fixed header buffer. The NAND writer then used the untrusted length and read beyond the stack object. Reject invalid or oversized lengths before copying the banner.
2026-10-04VideoCommon: refactor texture cache frame buffer copies, in preparation for ↵iwubcode
a future enhancement
2026-10-04VideoCommon: remove remnants of old custom shader feature, it will be ↵iwubcode
replaced by Materials in the future
2026-10-04Merge pull request #14899 from Starlightbotanist/adreno-tev-zero-rewriteiwubcode
VideoCommon: Work around Adreno TEV zero input miscompilation
2026-10-04VideoCommon: Work around Adreno TEV zero input miscompilationStarlightbotanist
Some Qualcomm Android drivers from version 700 onward miscompile specialized TEV pixel shaders when color input A or B is TevColorArg::Zero. Use konstLookup[8].rgb, which PixelShaderManager initializes to zero, to keep these inputs dependent on a uniform value. Use the existing driver bug gate for OpenGL and Vulkan. Other inputs and unaffected drivers retain their original shader expressions.
2026-10-03VideoCommon: split partial texture update logic from the actual renderingiwubcode
2026-10-03VideoCommon: return a RcTcacheEntry (shared_ptr) from TextureCacheBase::Load()iwubcode
This allows the texture entry to be stored off or passed around and shared in the future
2026-10-03Merge pull request #14891 from OatmealDome/shm-entry-begoneOatmealDome
MemArenaDarwin: Eliminate use of mach_make_memory_entry_64
2026-10-03Jit: Refactor m_back_patch_info/m_fault_to_handler's maps to store a vector ↵Martino Fontana
per block (Tested NBA Live 2005) Profiling codegen performance showed that one of the slower functions was inserting elements to this map. By inserting instead a vector of all the entries of a block, this disappears from the profiling, and the improvement is noticeable (tested the match intro sequence, though exact numbers are hard to gather). On x86 (ARM was already doing it), now erasing a block will also delete the corresponding entries from the map.