JosJuice
9862ba4548
Merge pull request #12155 from krnlyng/jit_block_map_msr_fast
...
JitArm64/Jit64: Extend the fast lookup mmap-ed segment further to avoid needing to check the msr bits.
2023-09-17 15:13:53 +02:00
Admiral H. Curtiss
cc7fadfa4b
Merge pull request #12181 from JosJuice/curl-response-code-long
...
Common: Fix HttpRequest::GetLastResponseCode stack corruption
2023-09-16 16:48:47 +02:00
JosJuice
aa4de6516f
Common: Fix HttpRequest::GetLastResponseCode stack corruption
...
Should fix https://bugs.dolphin-emu.org/issues/13353 .
2023-09-16 16:01:28 +02:00
Frajo Haider
fd9c970621
JitArm64/Jit64: Extend the fast lookup mmap-ed segment further to avoid needing to check the msr bits.
...
And in order to avoid a double dereference in the dispatcher, directly store
the normalEntry in the map.
The index to the block map becomes ((((DR<<1) | IR) << 30) | (address >> 2)).
This has been chosen since the msr bits change less often than the address,
thus we keep nearby entries together.
Also do not call the C dispatcher in case the assembly dispatcher didn't
find a block, since it wouldn't find a block either due to the 1:1 mapping,
except when falling back to the non shm segment lookup table.
2023-09-15 19:46:15 +03:00
Admiral H. Curtiss
1a821465f4
Merge pull request #12166 from iwubcode/cubemap_shader_texture_integration
...
VideoCommon: add cubemap to ShaderAsset and TextureAsset
2023-09-12 16:56:26 +02:00
Admiral H. Curtiss
308a52a782
Merge pull request #12165 from noahpistilli/scheduler-downloader
...
IOS/KD: Implement Download Scheduler
2023-09-12 16:22:23 +02:00
Admiral H. Curtiss
3dada564bf
Merge pull request #12177 from AdmiralCurtiss/noreserve
...
Common/MemArena: Set MAP_NORESERVE in LazyMemoryRegion on Linux.
2023-09-12 16:21:59 +02:00
Admiral H. Curtiss
d16bedd5c4
Merge pull request #12178 from JosJuice/jit-gp-pc
...
Jit: Use correct address when checking fifoWriteAddresses
2023-09-10 15:58:23 +02:00
Admiral H. Curtiss
92d67df4e9
Merge pull request #12138 from JosJuice/jit-gp-check-discard
...
Jit: Don't discard before gather pipe interrupt check
2023-09-10 15:10:37 +02:00
Admiral H. Curtiss
7869abf0e6
Common/MemArena: Set MAP_NORESERVE in LazyMemoryRegion on Linux.
2023-09-10 14:52:34 +02:00
Sketch
3f6a976e0f
IOS/KD: Implement Download Scheduler
2023-09-10 07:47:15 -04:00
JosJuice
34b0a6ea90
Jit: Check for discarded registers when flushing
...
This adds a check for the bug addressed by the previous commit.
2023-09-10 12:54:52 +02:00
JosJuice
5902b5b113
PPCAnalyst: Don't discard before gather pipe interrupt check
...
This bug has been lurking in the code ever since I added the discard
functionality. It doesn't seem to be triggered all that often,
and on top of that the emitted code only runs conditionally, so I'm not
sure if people have been affected by this bug in practice or not.
2023-09-10 12:54:52 +02:00
JosJuice
f7f4da2be8
Jit: Use correct address when checking fifoWriteAddresses
...
We need to check for the address of the *previous* instruction, because
checking fifoWriteAddresses happens not at the end of the instruction
that triggered it but at the start of the next instruction.
2023-09-10 12:54:18 +02:00
Admiral H. Curtiss
1a0f0e7e96
Merge pull request #12081 from JosJuice/jitarm64-debug-exit-pc
...
JitArm64: Store PC on debug exit
2023-09-10 02:10:29 +02:00
Admiral H. Curtiss
5e0cf795e3
Merge pull request #12169 from jordan-woyak/widescreen-heuristic-gameini
...
VideoCommon: Expose the widescreen heuristic's standard and widescreen values in onion config.
2023-09-09 16:51:11 +02:00
Admiral H. Curtiss
911c469cf5
Common/LogManager: Add logging category for Achievements.
2023-09-09 14:47:20 +02:00
R
860acfb15d
Steam Deck: Periodically reenable gyro
2023-09-07 19:56:58 +01:00
JosJuice
57e56f4bc2
Merge pull request #12174 from AdmiralCurtiss/jitcache-32bit
...
Core/JitCache: Don't try to allocate the fast block map on 32-bit builds.
2023-09-07 19:29:04 +02:00
Admiral H. Curtiss
cf2a1f29b7
Core/JitCache: Don't try to allocate the fast block map on 32-bit builds.
2023-09-07 14:48:57 +02:00
Admiral H. Curtiss
422bc7a627
Common/MemArena: A zero-byte allocation is invalid.
2023-09-07 14:41:24 +02:00
Admiral H. Curtiss
c14bc6ea4c
Common/MemArena: mmap returns MAP_FAILED on error, not nullptr.
2023-09-07 13:59:33 +02:00
Admiral H. Curtiss
a20bb3e05b
Common/MemArena: Assert return value of LazyMemoryRegion::Clear()'s mmap() call.
2023-09-07 04:00:22 +02:00
Jordan Woyak
7cc4304918
VideoCommon: Expose the widescreen heuristic's standard and widescreen ratio values in onion config.
2023-09-06 18:45:28 -05:00
JMC47
c0440df288
Merge pull request #12029 from LillyJadeKatrin/retroachievements-bugfix-2
...
RetroAchievements - Rearranged startup process
2023-09-06 12:23:52 -04:00
JMC47
3b5b9e0fc0
Merge pull request #12028 from LillyJadeKatrin/retroachievements-bugfix
...
RetroAchievements - Add Rich Presence to Achievement Dialog Header
2023-09-06 12:20:20 -04:00
LillyJadeKatrin
38bd04c439
Add Rich Presence to Achievement Dialog Header
...
This refactors the Rich Presence generation to store to a member field that can be exposed to the UI to display the Rich Presence in the achievement header. It still updates at its original rate of once per two minutes, but calls an update on the dialog when that ticks.
2023-09-06 10:01:33 -04:00
iwubcode
589834f562
VideoCommon: add cubemap as a sampler target for shaders, add cubemap as a valid texture asset
2023-09-05 21:11:19 -05:00
JMC47
76a00551d1
Merge pull request #11419 from OatmealDome/widescreen
...
VideoCommon: Allow widescreen heuristic's constants to be overridden by onion config
2023-09-05 13:25:07 -04:00
OatmealDome
4938b99600
VertexManagerBase: Allow widecreen heuristic constants to be overriden by onion config
2023-09-05 11:50:49 -04:00
OatmealDome
de781a6fa7
RenderBase: Allow widescreen heuristic's transition threshold to be overridden by onion config
2023-09-05 11:49:22 -04:00
JMC47
9419d92446
Merge pull request #12139 from iwubcode/more_shader_texture_properties
...
VideoCommon: add additional texture sampler types to ShaderAsset
2023-09-04 22:45:56 -04:00
JMC47
82ea4f4c70
Merge pull request #12137 from iwubcode/custom_pipeline_more_error_checking
...
VideoCommon: additional error checking for CustomPipelineAction
2023-09-04 22:43:41 -04:00
JMC47
627282473b
Merge pull request #12136 from iwubcode/texture_metadata_struct
...
VideoCommon: add TextureData structure with metadata
2023-09-04 22:40:50 -04:00
JMC47
efabcaf6ea
Merge pull request #12159 from noahpistilli/evc+rgnsel
...
Add Everybody Votes Channel and Region Select to WiiLink config
2023-09-04 12:00:02 -04:00
LillyJadeKatrin
348e60cd3f
Rearranged RetroAchievements startup process
...
Moved AchievementManager Init further down in the MainWindow constructor; its original position was because it had an impact on the contents of the menu bar, and this is no longer the case.
2023-09-04 09:32:13 -04:00
OatmealDome
3e9c9a3e8d
Merge pull request #12004 from TellowKrinkle/MetalMultiTarget
...
VideoBackends:Metal: Multi render target support
2023-09-03 23:31:38 -04:00
JMC47
900439ea0d
Merge pull request #12102 from iwubcode/cubemap_custom_texture
...
VideoCommon: add ability to load cube maps into custom texture data
2023-09-03 18:29:00 -04:00
Sketch
fb852a5062
VideoCommon: Deinit Graphics Mod Manager implicitly
2023-09-03 16:06:08 -04:00
Sketch
fdaa82f96d
Add Everybody Votes Channel and Region Select to WiiLink config
2023-09-03 15:56:02 -04:00
JosJuice
32f4f3ae7c
Merge pull request #12152 from JosJuice/android-settings-nullable
...
Android: Get rid of unnecessary nullability in features.settings
2023-09-03 19:53:30 +02:00
Admiral H. Curtiss
143a13622f
Merge pull request #12108 from noahpistilli/kd-check-mail
...
IOS/KD: Implement NWC24_CHECK_MAIL_NOW
2023-09-03 19:52:26 +02:00
Sketch
2154941c2c
IOS/KD: Implement NWC24_CHECK_MAIL_NOW
2023-09-03 13:05:58 -04:00
JosJuice
c378365324
Android: Get rid of unnecessary nullability in features.settings
2023-09-03 17:44:26 +02:00
JosJuice
26e9294075
Merge pull request #12153 from JosJuice/android-iso-paths-jni
...
Android: Use JNI for setting/getting ISO paths
2023-09-03 17:38:52 +02:00
JosJuice
57b1bd2b1a
Merge pull request #12151 from JosJuice/android-controller-float
...
Android: Fix controller float sliders crashing
2023-09-03 17:38:42 +02:00
Admiral H. Curtiss
f063fb31b3
Merge pull request #12149 from noahpistilli/no-response-header-rsa
...
IOS/KD: Check if a file has an RSA signature
2023-09-03 03:50:18 +02:00
Sketch
fa2bc535f1
IOS/KD: Check if a file has an RSA signature
2023-09-02 21:39:54 -04:00
Admiral H. Curtiss
46a596c0d3
Merge pull request #12148 from Dentomologist/fifo_convert_memoryupdate_type_to_enum_class
...
Fifo: Convert MemoryUpdate::Type to enum class
2023-09-03 03:34:35 +02:00
iwubcode
62fee2f3b6
VideoCommon: add loading cube maps from DDS files and loading it into our custom texture object. Custom texture object now has the concept of slices in addition to levels. Traditional custom textures have a single slice
2023-09-02 20:20:09 -05:00
Dentomologist
9cabf20aaa
Fifo: Convert MemoryUpdate::Type to enum class
2023-09-02 18:19:26 -07:00
Admiral H. Curtiss
6d04618921
Merge pull request #12157 from Dentomologist/texturecachebase_add_m_prefix
...
TextureCacheBase: Add m_ prefix to member variables
2023-09-03 03:10:57 +02:00
JMC47
bd57d17dee
Merge pull request #12079 from JosJuice/blr-no-fastmem
...
Jit: Allow BLR optimization without fastmem
2023-09-02 12:45:39 -04:00
JosJuice
190e71a318
Android: Use JNI for setting/getting ISO paths
...
This gets rid of the last Android-specific code that directly interfaces
with INI files.
2023-09-02 12:58:20 +02:00
JosJuice
1c47c510cd
Android: Remove all uses of Any from SliderSetting
...
This makes casting unnecessary, preventing the kind of type error we
just had from occurring in the future.
2023-09-02 10:05:42 +02:00
JosJuice
e6138d7683
Android: Fix controller float sliders crashing
...
By not setting a stepSize, stepSize was getting set to the default
value of 0, which is an Int. This later caused a crash when trying to
cast it to Float.
2023-09-02 09:12:42 +02:00
Dentomologist
d5d3eb5025
TextureCacheBase: Add m_ prefix to member variables
2023-09-01 22:52:17 -07:00
Admiral H. Curtiss
f1c1c6ded6
JitCache: Fix potentially dangling pointer to fast block map.
...
Whenever JitBaseBlockCache::Clear() got called, it threw away the memory mapping for the fast block map and created a new one. This new mapping typically got mapped at the same address at the old one, but this is not guaranteed. The pointer to the mapping gets embedded in the generated dispatcher code in Jit64AsmRoutineManager::Generate(), which is only called once on game boot, so if the new mapping ended up at a different address than the old one, the pointer in the ASM pointed at garbage, leading to a crash.
This fixes the issue by guaranteeing that the new mapping is mapped at the same address.
2023-09-02 04:03:22 +02:00
Admiral H. Curtiss
5bd7756064
Common/MemArena: Add LazyMemoryRegion to represent a zero-initialized memory region whose pages are only allocated on first access.
2023-09-02 04:02:10 +02:00
Charles Lombardo
5e5887a378
Merge pull request #12095 from t895/color-space-settings
...
Android: Expose color space settings
2023-08-30 10:07:07 -04:00
JMC47
efa820763a
Merge pull request #12147 from Dentomologist/pagefaulttest_use_gtest_skip
...
PageFaultTest: Use GTEST_SKIP instead of early return
2023-08-29 17:38:31 -04:00
JosJuice
4131dffae9
Jit: Allow BLR optimization without fastmem
...
While both fastmem and the BLR optimization depend on fault handling,
the BLR optimization doesn't depend on fastmem, and there are cases
where you might want the BLR optimization but not fastmem. For me
personally, it's useful when I try to use a debugger on Android and have
to disable fastmem so I don't get SIGSEGVs all the time, but it would be
especially useful for iOS users.
2023-08-29 22:55:29 +02:00
JosJuice
af2c32635a
Jit: Add more error checking to ProtectStack
2023-08-29 22:46:50 +02:00
JMC47
1b2d0c0507
Merge pull request #10575 from JosJuice/jitbase-auto-clear
...
Jit: Automatically clear cache when JIT settings are updated
2023-08-29 15:56:25 -04:00
Dentomologist
75a62e116c
PageFaultTest: Use GTEST_SKIP instead of early return
...
Using GTEST_SKIP instead of just returning from the function shows that
a test was skipped in the test summary. If GTEST_SKIP is called the rest
of the function won't be run, just like with the return.
GTEST_SKIP wasn't available until gtest 1.10, and we updated to 1.12 in
597f8f1b87
.
2023-08-29 12:24:11 -07:00
Admiral H. Curtiss
69db8a615f
Merge pull request #12145 from JosJuice/ubershaderpixel-uint
...
VideoCommon: Fix GLSL uint handling in UberShaderPixel
2023-08-29 12:33:54 +02:00
Charles Lombardo
53fc3446d5
Android: Support settings with float values
...
We did support float settings before but we never showed anything past the decimal place before.
2023-08-29 00:30:03 -04:00
Charles Lombardo
80b329b77f
Android: Expose color correction settings
2023-08-29 00:20:16 -04:00
Admiral H. Curtiss
df120b0630
Merge pull request #12000 from Filoppi/window_res_fix
...
Video: Fix issues with the window presentation
2023-08-28 23:50:50 +02:00
Admiral H. Curtiss
357db03fc8
Merge pull request #12030 from LillyJadeKatrin/retroachievements-bugfix-3
...
RetroAchievements - Fixed Leaderboard Scored message format
2023-08-28 23:28:37 +02:00
Charles Lombardo
153a95482a
Merge pull request #12119 from ThunderousEcho/feature/latching-buttons
...
Added latching buttons (Android)
2023-08-28 15:32:47 -04:00
JosJuice
5b112dbf2c
VideoCommon: Fix GLSL uint handling in UberShaderPixel
2023-08-28 21:17:01 +02:00
Charles Oliner
ee395bb2e5
Added latching buttons
...
Added latching buttons, buttons which turn on when you press them and off when you press them again.
2023-08-27 13:28:53 -04:00
JosJuice
58f247290f
Use latest resolution value for resolution hotkey OSD
...
Because CPU thread config changed callbacks are no longer instant,
g_Config.iEFBScale doesn't yet contain the new value when the hotkey OSD
code tries to read it.
Should fix https://bugs.dolphin-emu.org/issues/13343 .
2023-08-27 15:38:00 +02:00
JosJuice
7ac0db70c6
Merge pull request #12086 from krnlyng/jitcompilerPCload
...
JitArm64: Avoid loading compilerPC multiple times if it's already in a register.
2023-08-27 10:05:11 +02:00
iwubcode
f982c556b5
VideoCommon: add additional texture sampler types to ShaderAsset
2023-08-26 12:12:37 -05:00
JosJuice
f9959656e7
Merge pull request #11919 from t895/kotlin-controls
...
Android: Convert "features.input" package to Kotlin
2023-08-26 19:10:56 +02:00
Frajo Haider
7daa19f40d
JitArm64: Avoid loading compilerPC multiple times if it's already in a register.
2023-08-26 18:14:07 +03:00
JosJuice
85281e76ee
Jit: Remove unnecessary member variables
2023-08-26 17:05:04 +02:00
JosJuice
07d70db46b
DolphinQt: Allow toggling most JIT debug settings at any time
...
There's no reason not to allow this now that these settings are
cleanly integrated into the new config system. (Actually, maybe
we could even have done this before the previous commit...)
2023-08-26 17:05:04 +02:00
JosJuice
28e8117b90
Jit: Automatically clear cache when JIT settings are updated
...
This fixes a problem where changing the JIT debug settings on
Android while a game was running wouldn't cause the changed settings
to apply to code blocks that already had been compiled.
2023-08-26 17:04:56 +02:00
JosJuice
cd31da97d6
Merge pull request #11191 from JosJuice/jitarm64-no-checked-entry
...
JitArm64: Never check downcount on block entry
2023-08-26 17:00:08 +02:00
Admiral H. Curtiss
799ce0dc9d
Merge pull request #12097 from Dentomologist/ios_remove_unused_member_variables
...
IOS: Remove unused member variable from SharedContentMap and UIDSys
2023-08-26 16:41:45 +02:00
Admiral H. Curtiss
2502e412b3
Merge pull request #12117 from JosJuice/config-callback-cpu
...
Don't call RunAsCPUThread in config callbacks
2023-08-26 16:34:46 +02:00
Admiral H. Curtiss
d8e35438bd
Merge pull request #12127 from sepalani/ascii_
...
MemoryViewWidget: Fix some characters being truncated
2023-08-26 14:56:26 +02:00
Admiral H. Curtiss
65a9be581f
Merge pull request #12121 from JosJuice/discscrubber-volume-ptr
...
DiscIO: Don't keep volume pointer in DiscScrubber
2023-08-26 14:31:15 +02:00
Admiral H. Curtiss
dec2990053
Merge pull request #12128 from Dentomologist/gcc_suppress_ppcstate_off_warning_spam
...
GCC: Suppress PPCSTATE_OFF invalid-offsetof warnings
2023-08-26 14:22:04 +02:00
Admiral H. Curtiss
e876045e56
Merge pull request #12135 from Dentomologist/jitarm64_resolve_deprecated_enum_conversion_warning
...
JitArm64: Resolve deprecated enum conversion warning
2023-08-26 14:18:58 +02:00
Admiral H. Curtiss
5c4671f573
Merge pull request #12126 from JosJuice/small-vector
...
Move SmallVector to Common
2023-08-26 14:15:18 +02:00
Charles Lombardo
6a19629fc6
Android: Convert TvSettingsItem to Kotlin
2023-08-25 14:54:17 -04:00
Charles Lombardo
ed9467dc1b
Android: Convert HomeScreenChannel to Kotlin
2023-08-25 14:54:17 -04:00
Charles Lombardo
09c2c6541d
Android: Convert GameFileCache to Kotlin
2023-08-25 14:54:17 -04:00
Charles Lombardo
a56ee1a62e
Android: Convert GameFile to Kotlin
2023-08-25 14:54:16 -04:00
Charles Lombardo
0e3b33d901
Android: Convert InputMappingControlSettingViewHolder to Kotlin
2023-08-25 14:20:33 -04:00
Charles Lombardo
6caa4307ac
Android: Convert ProfileViewHolder to Kotlin
2023-08-25 14:20:33 -04:00
Charles Lombardo
29e5c78541
Android: Convert ProfileDialogPresenter to Kotlin
2023-08-25 14:20:33 -04:00
Charles Lombardo
6ad18e4ee5
Android: Convert ProfileAdapter to Kotlin
2023-08-25 14:20:33 -04:00
Charles Lombardo
dfafa74ba1
Android: Convert MotionAlertDialog to Kotlin
2023-08-25 14:20:33 -04:00
Charles Lombardo
5171290bdb
Android: Convert AdvancedMappingDialog to Kotlin
2023-08-25 14:20:33 -04:00
Charles Lombardo
d049be0cad
Android: Convert AdvancedMappingControlViewHolder to Kotlin
2023-08-25 14:20:33 -04:00