aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-03-17Ava UI: Fix locale crash (#6385)1.1.1238Isaac Marovitz
* Fix locale crash * Apply suggestions from code review --------- Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-03-16Ava UI: Content Dialog Fixes (#6482)1.1.1237Isaac Marovitz
* Don’t use ContentDialogHelper when not necessary * Remove `ExtendClientAreaToDecorationsHint`
2024-03-16chore: remove repetitive words (#6500)1.1.1234standstaff
Signed-off-by: standstaff <zhengxingru@yeah.net>
2024-03-16Fix Title Update Manager not refreshing app list (#6507)1.1.1233Isaac Marovitz
2024-03-16discord: Update ApplicationID (#6513)1.1.1232TSRBerry
2024-03-14GPU: Rebind RTs if scale changes when binding textures (#6493)1.1.1231riperiperi
This fixes a longstanding issue with resolution scale that could result in flickering graphics, typically the first frame something is drawn, or on camera cuts in cutscenes. The root cause of the issue is that texture scale can be changed when binding textures or images. This typically happens because a texture becomes a view of a larger texture, such as a 400x225 texture becoming a view of a 800x450 texture with two levels. If the 400x225 texture is bound as a render target and has state [1x Undesired], but the storage texture is [2x Scaled], the render target texture's scale is changed to [2x Scaled] to match its new storage. This means the scale changed after the render target state was processed... This can cause a number of issues. When render target state is processed, texture scales are examined and potentially changed so that they are all the same value. If one texture is scaled, all textures must be. If one texture is blacklisted from scaling, all of them must be. This results in a single resolution scale value being assigned to the TextureManager, which also scales the scissor and viewport values. If the scale is chosen as 1x, and a later texture binding changes one of the textures to be 2x, the scale in TextureManager no longer matches all of the bound textures. What's worse, the scales in these textures could mismatch entirely. This typically results in the support buffer scale, viewport and scissor being wrong for at least one of the bound render targets. This PR fixes the issue by re-evaluating render target state if any scale mismatches the expected scale after texture bindings happen. This can actually cause scale to change again, so it must loop back to perform texture bindings again. This can happen as many times as it needs to, but I don't expect it to happen more than once. Problematic bindings will just result in a blacklist, which will propagate to other bound targets.
2024-03-14Consider Polygon as unsupported is triangle fans are unsupported on Vulkan ↵1.1.1230gdkchan
(#6490)
2024-03-14Separate guest/host tracking + unaligned protection (#6486)1.1.1229riperiperi
* WIP: Separate guest/host tracking + unaligned protection Allow memory manager to define support for single byte guest tracking * Formatting * Improve docs * Properly handle cases where the address space bits are too low * Address feedback
2024-03-14Ava UI: Update Ava (#6430)1.1.1228Isaac Marovitz
* Update Ava * Newline
2024-03-13infra: Fix updater for old Ava users (#6441)1.1.1227TSRBerry
* Add binaries with both names to release archives * Add migration code for the new filename * Add Ryujinx.Ava to all win/linux releases for a while
2024-03-13Update AutoDeleteCache.cs (#6471)1.1.1226Keaton
Increase the texture cache limit from 512 MB to 1 GB.
2024-03-13Fix geometry shader passthrough issue (#6462)1.1.1225Nicolas Abram
* Fix geometry shader passthrough issue (Diagnosed by gdkchan) * Fix whitespace formatting * Fix whitespace formatting * Bump shader cache version * Don't apply PassthroughNV decorations to output geometry shader variables
2024-03-11Passthrough mouse for win32 (#6450)1.1.1224Emmanuel Hansen
* passthrough mouse for win32 * remove unused enums
2024-03-10Fix lost copy and swap problem on shader SSA deconstruction (#6455)1.1.1223gdkchan
* Fix lost copy on shader SSA deconstruction * Shader cache version bump
2024-03-09Refactor memory managers to a common base class, consolidate Read() method ↵1.1.1222jhorv
logic (#6360) * - add new abstract class `VirtualMemoryManagerBase` - rename `MemoryManagerBase` to `VirtualMemoryManagerRefCountedBase` and derive from `VirtualMemoryManagerBase` - change `AddressSpaceManager`, `HvMemoryManager`, `MemoryManager`, and `MemoryManagerHostMapped` to implement abstract members and use the inherited `void VirtualMemoryManagerBase.Read(TVirtual va, Span<byte> data)` implementation. * move property `AddressSpaceSize` up by the other properties
2024-03-08Update dependencies from SixLabors to the latest version before the license ↵1.1.1221TSRBerry
change (#6440) * nuget: bump SixLabors.ImageSharp from 1.0.4 to 2.1.3 (#3976) * nuget: bump SixLabors.ImageSharp from 1.0.4 to 2.1.3 Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 1.0.4 to 2.1.3. - [Release notes](https://github.com/SixLabors/ImageSharp/releases) - [Commits](https://github.com/SixLabors/ImageSharp/compare/v1.0.4...v2.1.3) --- updated-dependencies: - dependency-name: SixLabors.ImageSharp dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update for 2.x changes Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mary <mary@mary.zone> * Update SixLabors.ImageSharp to 2.1.7 This is the latest version we can update to without the license change. * Update SixLabors.ImageSharp.Drawing to v1.0.0 This is the latest version we can update to without the license change. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mary <mary@mary.zone>
2024-03-07LightningJit: Disable some cache ops and CTR_EL0 access on Windows Arm (#6326)1.1.1220gdkchan
* LightningJit: Disable some cache ops and CTR_EL0 access on Windows Arm * Format whitespace * Delete unused code * Fix typo Co-authored-by: riperiperi <rhy3756547@hotmail.com> --------- Co-authored-by: riperiperi <rhy3756547@hotmail.com>
2024-03-07UI: Update minimum window size to 800x500 (#6425)1.1.1219MutantAura
2024-03-07Add title of game to screenshot text (#6266)1.1.1218Kyle
* Add sanitize method * Add app name to screenshot text output * Add app name to screenshot text
2024-03-02infra: Make Avalonia the default UI (#6375)1.1.1216Mary Guillemard
* misc: Move Ryujinx project to Ryujinx.Gtk3 This breaks release CI for now but that's fine. Signed-off-by: Mary Guillemard <mary@mary.zone> * misc: Move Ryujinx.Ava project to Ryujinx This breaks CI for now, but it's fine. Signed-off-by: Mary Guillemard <mary@mary.zone> * infra: Make Avalonia the default UI Should fix CI after the previous changes. GTK3 isn't build by the release job anymore, only by PR CI. This also ensure that the test-ava update package is still generated to allow update from the old testing channel. Signed-off-by: Mary Guillemard <mary@mary.zone> * Fix missing copy in create_app_bundle.sh Signed-off-by: Mary Guillemard <mary@mary.zone> * Fix syntax error Signed-off-by: Mary Guillemard <mary@mary.zone> --------- Signed-off-by: Mary Guillemard <mary@mary.zone>
2024-03-02Avalonia: only enable gamescope workaround under it (#6374)1.1.1215Mary Guillemard
Signed-off-by: Mary Guillemard <mary@mary.zone>
2024-02-24Change packed aliasing formats to UInt (#6358)1.1.1214gdkchan
2024-02-23IPC code gen improvements (#6352)1.1.1212jhorv
* HipcGenerator: skip do-nothing call to MemoryMarshal.Cast<byte, byte>() in generated code * HipcGenerator: fix method name typos * HipcGenerator: make generated methods use stackalloc for `isBufferMapAlias` bool array * HipcGenerator: make generated GetCommandHandlers() method return a FrozenDictionary<int, CommandHandler> * HipcGenerator: return `FrozenDictionary<,>.Empty` when there are no command implementations, otherwise create `FrozenDictionary` from a `IEnumerable<KeyValuePair<,>>`` instead of a `Dictionary<,>``
2024-02-22Migrate Audio service to new IPC (#6285)1.1.1211gdkchan
* Migrate audren to new IPC * Migrate audout * Migrate audin * Migrate hwopus * Bye bye old audio service * Switch volume control to IHardwareDeviceDriver * Somewhat unrelated changes * Remove Concentus reference from HLE * Implement OpenAudioRendererForManualExecution * Remove SetVolume/GetVolume methods that are not necessary * Remove SetVolume/GetVolume methods that are not necessary (2) * Fix incorrect volume update * PR feedback * PR feedback * Stub audrec * Init outParameter * Make FinalOutputRecorderParameter/Internal readonly * Make FinalOutputRecorder IDisposable * Fix HardwareOpusDecoderManager parameter buffers * Opus work buffer size and error handling improvements * Add AudioInProtocolName enum * Fix potential divisions by zero
2024-02-22OpenGL: Mask out all color outputs with no fragment shader (#6341)1.1.1210riperiperi
* OpenGL: Mask out all color outputs with no fragment shader This appears to match Vulkan's behaviour, which is needed for stencil shadows in Penny's Big Breakaway. It's far from the only issue, you can try the Full Bindless PR if you want to see it in a more intact state. * Remove unused member
2024-02-22Ensure service init runs after Horizon constructor (#6342)1.1.1209gdkchan
2024-02-22Implement virtual buffer dependencies (#6190)1.1.1208gdkchan
* Implement virtual buffer copies * Introduce TranslateAndCreateMultiBuffersPhysicalOnly, use it for copy and clear * Rename VirtualBufferCache to VirtualRangeCache * Fix potential issue where virtual range could exist in the cache, without a physical buffer * Fix bug that could cause copy with negative size on CopyToDependantVirtualBuffer * Remove virtual copy back for SyncAction * GetData XML docs * Make field readonly * Fix virtual buffer modification tracking * Remove CopyFromDependantVirtualBuffers from ExternalFlush * Move things around a little to avoid perf impact - Inline null check for CopyFromDependantVirtualBuffers - Remove extra method call for SynchronizeMemoryWithVirtualCopyBack, prefer calling CopyFromDependantVirtualBuffers separately * Fix up XML doc --------- Co-authored-by: riperiperi <rhy3756547@hotmail.com>
2024-02-22Vulkan: Properly reset barrier batch when splitting due to mismatching flags ↵1.1.1207riperiperi
(#6345) Forgot to set the end variable here. Should stop it from crashing when this path is taken.
2024-02-21Vulkan: Disable push descriptors on older NVIDIA GPUs (#6340)1.1.1206riperiperi
Disables push descriptors on older NVIDIA GPUs (10xx and below), since it is clearly broken beyond comprehension. The existing workaround wasn't good enough and a more thorough one will probably cost more performance than the feature gains. The workaround has been removed. Fixes #6331.
2024-02-21Vulkan: Fix barrier batching past limit (#6339)1.1.1205riperiperi
If more than 16 barriers were queued at one time, the _queuedBarrierCount would no longer match the number of remaining barriers, because when breaking out of the loop consuming them it deleted all barriers, not just the 16 that were consumed. Should fix freezes that started occurring with #6240. Fixes issue #6338.
2024-02-19Avalonia UI: Update English tooltips (#6305)1.1.1204MetrosexualGarbodor
* update English tooltips * missed a dot
2024-02-19Avalonia: Fix gamescope once and for all (#6301)1.1.1203Mary Guillemard
Enable input focus proxy, makes WM_TAKE_FOCUS capability to be exposed. This fix menu on gamescope, for real this time.... Signed-off-by: Mary Guillemard <mary@mary.zone>
2024-02-17LightningJit: Add a limit on the number of instructions per function for ↵1.1.1202gdkchan
Arm64 (#6328)
2024-02-17hid: Stub SetTouchScreenResolution (#6322)1.1.12011.1.1200Exhigh
* hid: Implement SetTouchScreenResolution * Fix Tomb Raider I-III Remastered from crashing without enabling Ignore Missing Services * PR Feedback: Update Comments
2024-02-17Vulkan: Improve texture barrier usage, timing and batching (#6240)1.1.1199riperiperi
* WIP barrier batch * Add store op to image usage barrier * Dispose the barrier batch * Fix encoding? * Handle read and write on the load op barrier. Load op consumes read accesses but does not add one, as the only other operation that can read is another load. * Simplify null check * Insert barriers on program change in case stale bindings are reintroduced * Not sure how I messed this one up * Improve location of bindings barrier update This is also important for emergency deferred clear * Update src/Ryujinx.Graphics.Vulkan/BarrierBatch.cs Co-authored-by: Mary Guillemard <thog@protonmail.com> --------- Co-authored-by: Mary Guillemard <thog@protonmail.com>
2024-02-16Vulkan: Use push descriptors for uniform bindings when possible (#6154)1.1.1198riperiperi
* Fix Push Descriptors * Use push descriptor templates * Use reserved bindings * Formatting * Disable when using MVK ("my heart will go on" starts playing as thousands of mac users shed a tear in unison) * Introduce limit on push descriptor binding number The bitmask used for updating push descriptors is ulong, so only 64 bindings can be tracked for now. * Address feedback * Fix logic for binding rejection Should only offset limit when reserved bindings are less than the requested one. * Workaround pascal and older nv bug * Add GPU number detection for nvidia * Only do workaround if it's valid to do so.
2024-02-15Implement X8Z24 texture format (#6315)1.1.1197gdkchan
2024-02-15Fix PermissionLocked check on UnmapProcessCodeMemory (#6314)1.1.1196gdkchan
2024-02-15Remove Vulkan SubgroupSizeControl enablement code (#6317)1.1.1195gdkchan
2024-02-15Stub VSMS related ioctls (#6313)1.1.1194gdkchan
* Stub VSMS related ioctls * Clean up usings
2024-02-15Updaters: Fix ARM Linux Updater (#6316)1.1.1193Isaac Marovitz
* Remove Arch Checks * Fix ARM Linux updater
2024-02-12Handle exceptions when checking user data directory for symlink (#6304)1.1.1192jcm
Co-authored-by: jcm <butt@butts.com>
2024-02-11macOS: Stop storing user data in Documents for some users; fix symlinks (#6241)1.1.1191jcm
* macOS: Stop storing user data in Documents for some users; fix symlinks * Use SupportedOSPlatform tag, catch exceptions, log warning instead of error * Provide best path hints to user if symlink fixup fails --------- Co-authored-by: jcm <butt@butts.com>
2024-02-11Old buttons (#6237)1.1.1188Isaac Marovitz
2024-02-11Infra: Capitalisation Consistency (#6296)1.1.1187Isaac Marovitz
* Rename Ryujinx.UI.Common * Rename Ryujinx.UI.LocaleGenerator * Update in Files AboutWindow * Configuration State * Rename projects * Ryujinx/UI * Fix build * Main remaining inconsistencies * HLE.UI Namespace * HLE.UI Files * Namespace * Ryujinx.UI.Common.Configuration.UI * Ryujinx.UI.Common,Configuration.UI Files * More instances
2024-02-11Standardize logging locations across desktop platforms (#6238)1.1.1186jcm
* Standardize logging locations across desktop platforms * Return null instead of empty literal on exceptions * Remove LogDirectoryPath from LoggerModule * Catch exception when creating DirectoryInfo in FileLogTarget * Remove redundant log path vars, handle exception better, add null check * Address styling issues * Remove extra newline, quote file path in log, move directory check to OpenHelper * Add GetOrCreateLogsDir to get/create log directory during runtime * misc format changes * Update src/Ryujinx.Common/Configuration/AppDataManager.cs --------- Co-authored-by: jcm <butt@butts.com> Co-authored-by: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-02-11Remove ReflectionBinding in Mod Manager (#6280)1.1.1184Isaac Marovitz
2024-02-11Update Avalonia About Window like requested in PR #6267 (#6278)1.1.1183sunshineinabox
* Update About Window like requested in PR #6267 * Feedback * Apply suggestions from code review Co-authored-by: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com> * Fix indents --------- Co-authored-by: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com>
2024-02-11Fix mip offset/size for full 3D texture upload on Vulkan (#6294)1.1.1182gdkchan
2024-02-10Add missing RID exclusions for linux-arm64 (#6298)1.1.11811.1.1180Mary Guillemard
* Add missing RID exclusions for linux-arm64 Signed-off-by: Mary Guillemard <mary@mary.zone> * Remove libsoundio.so from linux-arm64 deployment This is a x86_64 library. Signed-off-by: Mary Guillemard <mary@mary.zone> --------- Signed-off-by: Mary Guillemard <mary@mary.zone>