aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-09-26GPU: Ensure all clip distances are initialized when used (#7363)riperiperi
* GPU: Ensure all clip distances are initialized when used * Shader cache version
2024-09-22Fix quads draws after DrawTexture on Vulkan (#7336)gdkchan
2024-09-19Shader: Assume the only remaining source is the right one when all others ↵gdkchan
are undefined (#7331) * Shader: Assume the only remaining source is the right one when all other are undefined * Shader cache version bump * Improve comment
2024-09-19Add support for sampler sRGB disable (#7312)gdkchan
2024-09-18Replace passing by IMemoryOwner<byte> with passing by concrete ↵jhorv
MemoryOwner<byte> (#7171) * refactor(perf): pass MemoryOwner<byte> around as itself rather than IMemoryOwner<byte> * fix(perf): get span via MemoryOwner<byte>.Span property instead of through Memory property * fix: incorrect comment change
2024-09-18Implement support for shader ATOM.EXCH instruction (#7320)gdkchan
* Implement support for shader ATOM.EXCH instruction * Shader cache version bump * Check type
2024-09-17Revert "Wait for async task to complete (#7122)" (#7318)gdkchan
This reverts commit ccf96bf5e673456ec80f72725e4c9afa4e4c5a85.
2024-09-17Change image format view handling to allow view incompatible formats (#7311)gdkchan
* Allow creating texture aliases on texture pool * Delete old image format override code * New format incompatible alias * Missing bounds check * GetForBinding now takes FormatInfo * Make FormatInfo struct more compact
2024-09-17Wait for async task to complete (#7122)TSRBerry
This way exceptions thrown during the execution of CheckLaunchState() will correctly invoke the unhandled exception handler and cause Ryujinx to crash.
2024-09-17Add area sampling scaler to allow for super-sampled anti-aliasing. (#7304)ZenoArrows
* Add area sampling scaler to allow for super-sampled anti-aliasing. * Area scaling filter doesn't have a scaling level. * Add further clarification to the tooltip on how to achieve supersampling. * ShaderHelper: Merge the two CompileProgram functions. * Convert tabs to spaces in area scaling shaders * Fixup Vulkan and OpenGL project files. * AreaScaling: Replace texture() by texelFetch() and use integer vectors. No functional difference, but it cleans up the code a bit. * AreaScaling: Delete unused sharpening level member. Also rename _scale to _sharpeningLevel for clarity and consistency. * AreaScaling: Delete unused scaleX/scaleY uniforms. * AreaScaling: Force the alpha to 1 when storing the pixel. * AreaScaling: Remove left-over sharpening buffer.
2024-09-17Change 6GB DRAM expansion to 8GB (#7313)gdkchan
* Change 6GB DRAM expansion to 8GB * Update texts and tooltips
2024-09-15Implement fast DMA texture to texture copy (#7299)gdkchan
* Implement fast DMA texture to texture copy * PR feedback
2024-09-15Make GetFunctionPointerForDelegate as explicit as possible (#7279)Emmanuel Hansen
Co-authored-by: gdk <gab.dark.100@gmail.com>
2024-09-12Implement Arm32 VSHLL and QADD16 instructions (#7301)gdkchan
2024-09-01Vulkan: Feedback loop detection and barriers (#7226)riperiperi
* Vulkan: Feedback loop improvements This PR allows the Vulkan backend to detect attachment feedback loops. These are currently used in the following ways: - Partial use of VK_EXT_attachment_feedback_loop_layout - All renderable textures have AttachmentFeedbackLoopBitExt - Compile pipelines with Color/DepthStencil feedback loop flags when present - Support using FragmentBarrier for feedback loops (fixes regressions from https://github.com/Ryujinx/Ryujinx/pull/7012 ) TODO: - AMD GPUs may need layout transitions for it to properly allow textures to be used in feedback loops. - Use dynamic state for feedback loops. The background pipeline will always miss since feedback loop state isn't known on the GPU project. - How is the barrier dependency flag used? (DXVK just ignores it, there's no vulkan validation...) - Improve subpass dependencies to fix validation errors * Mark field readonly * Add feedback loop dynamic state * fix: add MoltenVK resolver workaround fix: add MoltenVK resolver workaround * Formatting * Fix more complaints * RADV dcc workaround * Use dynamic state properly, cleanup. * Use aspects flags in more places
2024-09-01Fix incorrect depth texture 3D flag (#7262)gdkchan
2024-09-01Vulkan: Update Silk.NET to 2.21 (#7266)riperiperi
* Update Silk.NET version * fix: add MoltenVK resolver workaround fix: add MoltenVK resolver workaround * Cleanup * Readonly ref warnings * Remove driver id todo
2024-08-31Make HLE project AOT friendly (#7085)Emmanuel Hansen
* add hle service generator remove usage of reflection in device state * remove rd.xml generation * make applet manager reflection free * fix typos * fix encoding * fix style report * remove rogue generator reference * remove double assignment
2024-08-31Replace ImageSharp with SkiaSharp everywhere (#7030)Emmanuel Hansen
* replace ImageSharp with SkiaSharp for inline keyboard applet rendering * fix avalonia inline keyboard input * remove image sharp from gtk3 project * add skiasharp linux assets * fix whitespace * fix format * fix ico image offset when saving shortcut to windows
2024-08-27Fix deadlock in background translation thread shutdown (#7239)David McFarland
TryDequeue checks for _disposed before taking the lock. If another thread calls Dispose before it takes the lock, it won't get woken up by the PulseAll call, and will deadlock in Monitor.Wait. Double-checking _disposed with the lock taken should avoid this.
2024-08-21Fix NRE when using buffer image array (#7159)gdkchan
2024-08-17nim:eca : Stub CreateServerInterface2 (#7128)Tsubasa0504
* Add files via upload * Add files via upload * Update src/Ryujinx.HLE/HOS/Services/Nim/IShopServiceAccessServerInterface.cs --------- Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-08-13Fix arbitrary game ordering when sorting by Favorites (#7170)Logan Stromberg
* Fix arbitrary sorting by "Favorite" in the UI by making it the same as sorting alphabetically while giving favorites priority. * Use a more engineered solution rather than string hacks. * Address code style warnings. Add null checking. Make title name comparison case insensitive. * one more style fix --------- Co-authored-by: Logan Stromberg <lostromb@microsoft.com>
2024-08-12Clamp amount of mipmap levels to max allowed for all backends (#7197)gdkchan
* Clamp amount of mipmap levels to max allowed for all backends * XML docs * Remove using
2024-08-08Implement UQADD16, UQADD8, UQSUB16, UQSUB8, VQRDMULH, VSLI and VSWP Arm32 ↵gdkchan
instructions (#7174)
2024-08-05Replace and remove obsolete ByteMemoryPool type (#7155)jhorv
* refactor: replace usage of ByteMemoryPool with MemoryOwner<byte> * refactor: delete unused ByteMemoryPool and ByteMemoryPool.ByteMemoryPoolBuffer types * refactor: change IMemoryOwner<byte> return types to MemoryOwner<byte> * fix(perf): get span via `MemoryOwner<T>.Span` directly instead of `MemoryOwner<T>.Memory.Span` * fix(perf): get span via MemoryOwner<T>.Span directly instead of `MemoryOwner<T>.Memory.Span` * fix(perf): get span via MemoryOwner<T>.Span directly instead of `MemoryOwner<T>.Memory.Span`
2024-08-05Fix same textures with unmapped start being considered different (#7141)gdkchan
* Fix same textures with unmapped start being considered different * Consolidate IsInvalid check * InvalidAddress const * Fix typo Co-authored-by: riperiperi <rhy3756547@hotmail.com> --------- Co-authored-by: riperiperi <rhy3756547@hotmail.com>
2024-08-04Fix LocaleExtension SetRawSource usages + language perf improvement (#7121)Julien Lebosquain
* Avoid Avalonia CompiledBindingPathBuilder.SetRawSource * Improve UI language change performance
2024-08-04Infra: Update Microsoft.IdentityModel.JsonWebTokens (#7070)Isaac Marovitz
* Update Microsoft.IdentityModel.JsonWebTokens * Update
2024-08-03Avoid race conditions while launching games directly from the command line ↵TSRBerry
(#7116) * optimization: Load application metadata only for applications with IDs * Load applications when necessary This prevents loading applications when launching an application directly from the command line (or a shortcut). Instead, applications will be loaded after the emulation was stopped by the user. * Show the title in the configured language when launching an application * Rename DesiredTitleLanguage to DesiredLanguage
2024-08-03replace ByteMemoryPool usage in Ryujinx.Graphics (#7129)jhorv
* chore: replace `ByteMemoryPool` usage with `MemoryOwner<byte>` * refactor: `PixelConverter.ConvertR4G4ToR4G4B4A4()` - rename old `outputSpan` to `outputSpanUInt16`, reuse same output `Span<byte>` as newly-freed name `outputSpan` * eliminate temporary buffer allocations * chore, perf: use MemoryOwner<byte> instead of IMemoryOwner<byte>
2024-08-03Fix FileNotFoundException in TryGetApplicationsFromFile() and improve ↵TSRBerry
loading applications (#7145) * Don't load files from hidden subdirectories * Catch FileNotFoundException in TryGetApplicationsFromFile() * Skip non-existent files and bad symlinks when loading applications
2024-07-31Fix off-by-one on audio renderer PerformanceManager.GetNextEntry (#7139)gdkchan
2024-07-30Fix shader RegisterUsage pass only taking first operation dest into account ↵gdkchan
(#7131) * Fix shader RegisterUsage pass only taking first operation dest into account * Shader cache version bump
2024-07-30Vulkan: Force topology to PatchList for Tessellation (#7102)riperiperi
Vulkan spec states that input topology should always be PatchList when a tessellation pipeline is present. The AMD GPU on windows crashes so hard it BSODs the machine if this isn't the case, so it's forced here just in case. I'm not sure what providing a different topology here would even do, as you'd think it would always be a patch list input.
2024-07-25Ava UI: Handle updates containing non numeric characters (#7043)Isaac Marovitz
* Handle updates containing non numeric characters Smh Dont be stupid * Use Berry’s method * Thanks gdk * Remove using
2024-07-25Vulkan: Add missing barriers for texture to buffer copy (#7092)riperiperi
This barrier has always been missing, but it only became apparent when #7012 merged. I also added some barriers in case the target buffer used here is used by other commands, though right now it isn't. Fixes a regression where water would turn white on AMD GPUs with the proprietary driver. May fix other issues on this driver.
2024-07-22Update kernel GetInfo SVC for firmware 18.0.0 (#7075)gdkchan
* Implement kernel GetInfo AliasRegionExtraSize * Implement IsSvcPermitted * Remove warning supressions that are no longer needed * Remove useless cast
2024-07-21Fix checking for the wrong metadata files for applications launched with a ↵TSRBerry
different program index (#7055) * Fix checking for the wrong update metadata file * Apply the same fix for dlc.json * Use the base application ids for updates and DLCs in the GUI too This shouldn't actually change anything, since the program index part of the application id should always be 0 for all applications currently seen by the GUI. This was just done for completeness.
2024-07-20Make sure TryGetApplicationsFromFile() doesn't throw exceptions anymore (#7046)TSRBerry
* Add docstrings for exceptions to methods near TryGetApplicationsFromFile() * Make sure TryGetApplicationsFromFile() doesn't throw exceptions anymore * Add missing filePath to ApplicationData when loading applications from ExeFS * Fix typo Co-authored-by: riperiperi <rhy3756547@hotmail.com> --------- Co-authored-by: riperiperi <rhy3756547@hotmail.com>
2024-07-20Fix Skia saving screenshot with transparent background and incorrect origin ↵gdkchan
(#7073) * Fix Skia saving screenshot with transparent background and incorrect origin * Remove code that is no longer necessary
2024-07-20Unlink server sessions from multi-wait when service stops processing ↵gdkchan
requests (#7072)
2024-07-19Ava UI: Auto select newly added updates & DLC (#7026)Isaac Marovitz
* Fix DLC not being selected * FIx conflicts * Apply suggestions from code review Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> --------- Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
2024-07-18Add missing Buffer attribute on NGC Check method (#7051)gdkchan
2024-07-17Vulkan: Defer guest barriers, and improve image barrier timings (#7012)riperiperi
* More guarantees for buffer correct placement, defer guest requested buffers * Split RP on indirect barrier rn * Better handling for feedback loops. * Qualcomm barriers suck too * Fix condition * Remove unused field * Allow render pass barriers on turnip for now
2024-07-17Include content data foreach-loop in try-catch (#7036)TSRBerry
2024-07-16Add support for multi game XCIs (second try) (#6515)TSRBerry
* Add default values to ApplicationData directly * Refactor application loading It should now be possible to load multi game XCIs. Included updates won't be detected for now. Opening a game from the command line currently only opens the first one. * Only include program NCAs where at least one tuple item is not null * Get application data by title id and add programIndex check back * Refactor application loading again and remove duplicate code * Actually use patch ncas for updates * Fix number of applications found with multi game xcis * Don't load bundled updates from multi game xcis * Change ApplicationData.TitleId type to ulong & Add TitleIdString property * Use cnmt files and ContentCollection to load programs * Ava: Add updates and DLCs from gamecarts * Get the cnmt file from its NCA * Ava: Identify bundled updates in updater window * Fix the (hopefully) last few bugs * Add idOffset parameter to GetNcaByType * Handle missing file for dlc.json * Ava: Shorten error message for invalid files * Gtk: Add additional string for bundled updates in TitleUpdateWindow * Hopefully fix DLC issues * Apply formatting * Finally fix DLC issues * Adjust property names and fileSize field * Read the correct update file * Fix wrong casing for application id strings * Rename TitleId to ApplicationId * Address review comments * Apply suggestions from code review Co-authored-by: gdkchan <gab.dark.100@gmail.com> * Gracefully fail when loading pfs for update and dlc window * Fix applications with multiple programs * Fix DLCWindow crash on GTK * Fix some GUI issues * Remove IsXci again * Don't add duplicates to update/dlc windows * Avoid double lookup * Preserve DLC enabled state for bundled DLCs * Fix DLCWindow not opening using GTK * Fix missing information when loading applications from file * Address review feedback Rename ContentCollection to ContentMetaData Fix casing issues in log messages Use null as the default value for updatePath * Fix re-adding bundled DLCs every time * Fix bundled DLCs disappearing * Abstract common code to open application pfs * Remove unused imports * Fix file exists check when loading DLCs * Load bundled DLCs only using dlc.json * Load AoC items correctly * Add all DLCs from a PFS * Add argument to launch a specific application id * Use application-id argument for shortcuts if necessary * Return the application id from the control NCA if possible * GetApplicationInformation: Don't overwrite application ids Move SaveDataOwnerId check to the top, since it seems to be more reliable. * Get application ids from CNMT again This commit reverts some parts of 61615b8f0d6f90ae86778958ddc38eaf6dc280ab. Since the issue wasn't actually related to the application id in CMNTs, we can remove the wrong assumptions. * Revert erroneous axaml change from adca8900 * Rename title to application * Wrap nsp/pfs0 case with curly braces * Check if _applicationData.ControlHolder.ByteSpan is zeros only once * Catch exceptions while loading applications from nsps --------- Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2024-07-16Remove CommandBufferScoped Dependencies (#6958)Isaac Marovitz
2024-07-15misc: Re-order and manually update DriverID to name. (#7027)MutantAura
* Re-order and update DriverID -> Name. * Fix whitespace
2024-07-15replace ByteMemoryPool usage in Ryujinx.HLE (#6953)jhorv