riperiperi
43c0304240
Allow setting texture data from 1x to fix some textures resetting randomly ( #2860 )
...
* Allow setting texture data from 1x to fix some textures resetting randomly
Expected targets:
- Deltarune 1+2
- Crash Team Racing
- Those new pokemon games idk
* Allow scaling of MSAA textures, propagate scale on copy.
* Fix Rebase
Oops
* Automatic disable
* A bit more aggressive
* Without the debug log
* Actually decrement the score when writing.
2024-02-22 19:17:13 -05:00
Ac_K
ef167d23ba
Ava UI: Various Fixes ( #4326 )
...
* Ava UI: Various Fixes
* use WriteAllBytes
2024-02-22 19:17:13 -05:00
gdkchan
934358b295
Remove use of reflection on GAL multithreading ( #4287 )
...
* Introduce new IGALCommand<T> interface and use it
* Remove use of reflection on GAL multithreading
* Unmanaged constraint
2024-02-22 19:17:13 -05:00
dependabot[bot]
9f44a1c7fd
nuget: bump Microsoft.CodeAnalysis.Analyzers from 3.3.3 to 3.3.4 ( #4310 )
...
* nuget: bump Microsoft.CodeAnalysis.Analyzers from 3.3.3 to 3.3.4
Bumps [Microsoft.CodeAnalysis.Analyzers](https://github.com/dotnet/roslyn-analyzers ) from 3.3.3 to 3.3.4.
- [Release notes](https://github.com/dotnet/roslyn-analyzers/releases )
- [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/main/PostReleaseActivities.md )
- [Commits](https://github.com/dotnet/roslyn-analyzers/compare/v3.3.3...v3.3.4 )
---
updated-dependencies:
- dependency-name: Microsoft.CodeAnalysis.Analyzers
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fixes warning
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-02-22 19:17:13 -05:00
riperiperi
c96697ecc8
Use volatile read/writes for GAL threading ( #4327 )
2024-02-22 19:17:13 -05:00
gdkchan
81c98a52da
Implement CSET and CSETP shader instructions ( #4318 )
...
* Implement CSET and CSETP shader instructions
* Shader cache version bump
* Fix CC.HI
2024-02-22 19:17:13 -05:00
dependabot[bot]
372564d9eb
nuget: bump System.IdentityModel.Tokens.Jwt from 6.25.1 to 6.26.0 ( #4322 )
...
Bumps [System.IdentityModel.Tokens.Jwt](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet ) from 6.25.1 to 6.26.0.
- [Release notes](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/releases )
- [Changelog](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/dev/CHANGELOG.md )
- [Commits](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/commits )
---
updated-dependencies:
- dependency-name: System.IdentityModel.Tokens.Jwt
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 19:17:13 -05:00
Ac_K
24efff17c4
Ava UI: Add Notifications and Cleanup ( #4275 )
...
* Ava UI: Add Notifications and Cleanup
* Revert notifications on ErrorDialog
* remove unused code from game list views
* Fix cast
2024-02-22 19:17:13 -05:00
Ac_K
5ed473c386
Ava UI: Fix string.Format
issues in Locale ( #4305 )
...
* Ava UI: Fix `string.Format` issues in Locale
* LoacLanguage everytime now
* Apply suggestions from code review
Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
* fix UpdateAndGetDynamicValue
Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
2024-02-22 19:17:13 -05:00
Phi
35d20dd2f9
Catch Profile.json parse to prevent crash on launch ( #3393 )
...
* Catch Profile.json parse to prevent crash on launch
* Update Ryujinx.HLE/HOS/Services/Account/Acc/AccountSaveDataManager.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
Co-authored-by: PhiZero <wolkan.craanen@gmail.com>
Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-02-22 19:17:12 -05:00
gnisman
d316c15456
Ava UI: Add Control+Cmd+F HotKey for Mac OS ( #4317 )
...
* Ava UI: Add Control+Cmd+F HotKey for Mac OS
* fix aligned
* Remove comment from code
2024-02-22 19:17:12 -05:00
merry
cf2860d786
Audio: Implement PCM24 output ( #4321 )
2024-02-22 19:17:12 -05:00
Ac_K
dc59f79f90
Ava UI: Fixes and cleanup Updater ( #4269 )
...
* ava: Fixes and cleanup Updater
* _updateSuccessful
2024-02-22 19:17:12 -05:00
Fliperworld
b60a373784
Vulkan: Destroy old swapchain on swapchain recreation ( #3889 )
...
* Destroy old swapchain on swapchain recreation
* vkDeviceWaitIdle before DestroySwapchain
* Update Ryujinx.Graphics.Vulkan/Window.cs
Co-authored-by: gdkchan <gab.dark.100@gmail.com>
* Avoid unsafe code on RecreateSwapchain()
* Destroying old Swapchain on a queue.
* Cleanup and fix on destroying old Swapchain.
* Update Ryujinx.Graphics.Vulkan/Window.cs
Co-authored-by: gdkchan <gab.dark.100@gmail.com>
* Update Ryujinx.Graphics.Vulkan/Window.cs
Co-authored-by: gdkchan <gab.dark.100@gmail.com>
* Update Ryujinx.Graphics.Vulkan/Window.cs
Co-authored-by: gdkchan <gab.dark.100@gmail.com>
* Update Window.cs
Done.
Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2024-02-22 19:17:12 -05:00
riperiperi
bb8cabfb97
Vulkan: Explicitly enable precise occlusion queries ( #4292 )
...
The only guarantee of the occlusion query type in Vulkan is that it will be zero when no samples pass, and non-zero when any samples pass. Of course, most GPUs implement this by just placing the # of samples in the result and calling it a day. However, this lax restriction means that GPUs could just report a boolean (1/0) or report a value after one is recorded, but before all samples have been counted.
MoltenVK falls in the first category - by default it only reports 1/0 for occlusion queries. Thankfully, there is a feature and flag that you can use to force compatible drivers to provide a "precise" query result, that being the real # of samples passed.
Should fix ink collision in Splatoon 2/3 on MoltenVK.
2024-02-22 19:17:12 -05:00
merry
a285ce7126
NativeSignalHandler: Fix write flag ( #4306 )
...
* NativeSignalHandler: Fix write flag
* address comments
2024-02-22 19:17:12 -05:00
Andrey Sukharev
d2884d6912
Optimize string memory usage. Use Spans and StringBuilders where possible ( #3933 )
...
* Optimize string memory usage. Use ReadOnlySpan<char> and StringBuilder where possible.
* Fix copypaste error
* Code generator review fixes
* Use if statement instead of switch
* Code style fixes
Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
* Another code style fix
* Styling fix
Co-authored-by: Mary-nyan <thog@protonmail.com>
* Styling fix
Co-authored-by: gdkchan <gab.dark.100@gmail.com>
Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
Co-authored-by: Mary-nyan <thog@protonmail.com>
Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2024-02-22 19:17:12 -05:00
Ac_K
dc9e01694a
HOS: Load RomFs by pid ( #4301 )
...
We currently loading only one RomFs at a time, which could be wrong if one day we want to load more than one guest at time.
This PR fixes that by loading romfs by pid.
2024-02-22 19:17:12 -05:00
TSRBerry
8513af5837
Fix NRE when disposing AddressSpace with 4KB pages support ( #4307 )
2024-02-22 19:17:12 -05:00
merry
bdc100cec4
ConfigurationState: Default to Vulkan on macOS ( #4299 )
2024-02-22 19:17:12 -05:00
gdkchan
b7c1bc778d
Implement support for page sizes > 4KB ( #4252 )
...
* Implement support for page sizes > 4KB
* Check and work around more alignment issues
* Was not meant to change this
* Use MemoryBlock.GetPageSize() value for signal handler code
* Do not take the path for private allocations if host supports 4KB pages
* Add Flags attribute on MemoryMapFlags
* Fix dirty region size with 16kb pages
Would accidentally report a size that was too high (generally 16k instead of 4k, uploading 4x as much data)
Co-authored-by: riperiperi <rhy3756547@hotmail.com>
2024-02-22 19:17:12 -05:00
Ac_K
e7180dc373
Ava UI: Readd some infos to the GameList ( #4302 )
2024-02-22 19:17:12 -05:00
riperiperi
08580a396f
Add short duration texture cache ( #3754 )
...
* Add short duration texture cache
This texture cache takes textures that lose their last pool reference and keeps them alive until the next frame, or until an incompatible overlap removes it. This is done since under certain circumstances, a texture's reference can be wiped from a pool despite it still being in use - though typically the reference will return when rendering the next frame.
While this may slightly increase texture memory usage when quickly going through a bunch of temporary textures, it's still bounded due to the overlap removal rule.
This greatly increases performance in Hyrule Warriors: Age of Calamity. It may positively affect some UE4 games which dip framerate severely under certain circumstances.
* Small optimization
* Don't forget this.
* Add short cache dictionary
* Address feedback
* Address some feedback
2024-02-22 19:17:12 -05:00
TSRBerry
2f1e5c7473
Ava: Fix Linux Vulkan renderer regression ( #4303 )
...
* ava: Fix Linux Vulkan renderer staying transparent
* ava: Minor Renderer cleanup
* Don't supress potential NRE warning
Co-authored-by: Ac_K <Acoustik666@gmail.com>
Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-02-22 19:17:11 -05:00
Ac_K
e86e072f36
UI: Fixes GTK sorting regression of #4294
2024-02-22 19:17:11 -05:00
Ac_K
6a31f4bc2d
Ava UI: Renderer
refactoring ( #4297 )
...
* Ava UI: `Renderer` refactoring
* Fix Vulkan CreateSurface
2024-02-22 19:17:11 -05:00
Ac_K
263bbbdde0
UI: Fix applications times ( #4294 )
...
* Fix applications times
* Add spaces
* Fix TimeString formatting
2024-02-22 19:17:11 -05:00
gdkchan
8c84097ace
Specify image view usage flags on Vulkan ( #4283 )
...
* Specify image view usage flags on Vulkan
* PR feedback
2024-02-22 19:17:11 -05:00
Isaac Marovitz
20de15f8ae
Implement missing service calls in pm
( #4210 )
...
* Implement `GetTitleId`
Fixes #2516
* Null check + Proper result code
* Better comment
* Implement `GetApplicationProcessId`
* Add TODOs
* Update Ryujinx.HLE/HOS/Services/Pm/IInformationInterface.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.HLE/HOS/Services/Pm/IDebugMonitorInterface.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Remove new function from KernelStatic
Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-02-22 19:17:11 -05:00
Isaac Marovitz
f2548c9a45
Ava UI: TitleUpdateWindow
Refactor ( #4276 )
...
* Start Refactor
* Dialogue opens
* Changes
* Switch to ListBox
* Fix bugs and stuff
* Fix spacing
* Implement OpenLocation
* Change icon
* Color
* Color
* Remove background
* Make no update the same height
* Fix height and smooth scroll
* Height
* Fix update selection
* Make window smaller
* Add back remove all button
* Make selection more obvious
* Hide selection bar on SaveManager
* Fix autoscroll
* Fix no update not staying selected
* Better file opener
* Fix
* Revert that
* Update Ryujinx.Ava/UI/ViewModels/TitleUpdateViewModel.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Log warning
* Update Ryujinx.Ava/UI/ViewModels/TitleUpdateViewModel.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-02-22 19:17:11 -05:00
merry
6cf6214e01
Audren: Implement polyphase upsampler ( #4256 )
...
* Audren: Implement polyphase upsampler
* prefer shifting to modulo
* prefer MathF
* fix nits
* rm ResampleForUpsampler
* oop
* Array20
* nits
2024-02-22 19:17:10 -05:00
Ac_K
996f711178
Ava UI: Fixes "Hide Cursor on Idle" for Windows ( #4266 )
...
* Ava: Fixes "Hide Cursor on Idle" for Windows
* Add check in MouseDriver and reduce the time of idling
* Fix linux error
* Change idle time everywhere for consistencies
2024-02-22 19:17:10 -05:00
gnisman
7e8c0a2e11
Change GetPageSize to use Environment.SystemPageSize ( #4291 )
...
* Change GetPageSize to use Environment.SystemPageSize
* Fix PR comment
2024-02-22 19:17:10 -05:00
gdkchan
4573b76a93
Fix texture flush from CPU WaitSync regression on OpenGL ( #4289 )
2024-02-22 19:17:10 -05:00
gdkchan
ff06957b2f
Fix NRE when MemoryUnmappedHandler is called for a destroyed channel ( #4285 )
2024-02-22 19:17:10 -05:00
gdkchan
d363f34912
Fix texture modified on CPU from GPU thread after being modified on GPU not being updated ( #4284 )
2024-02-22 19:17:10 -05:00
Ac_K
1e8c3f1527
Update Program.cs
2024-02-22 19:17:10 -05:00
Ac_K
c1c5576538
Revert "Relax Vulkan requirements ( #4228 )" ( #4279 )
...
This reverts commit dca5b14493
.
2024-02-22 19:17:10 -05:00
gdkchan
d3bce29898
Relax Vulkan requirements ( #4228 )
2024-02-22 19:17:10 -05:00
Ac_K
1f9b66a8ad
Prepo: Fix SaveSystemReport* IPC definitions ( #4278 )
...
* Prepo: Fix SaveSystemReport IPC definitions
* Follow original code
* Fix args index in HipcGenerator
* Addresses feedback
* oops
2024-02-22 19:17:10 -05:00
riperiperi
7e8002e796
Vulkan: Add workarounds for MoltenVK ( #4202 )
...
* Add MVK basics.
* Use appropriate output attribute types
* 4kb vertex alignment, bunch of fixes
* Add reduced shader precision mode for mvk.
* Disable ASTC on MVK for now
* Only request robustnes2 when it is available.
* It's just the one feature actually
* Add triangle fan conversion
* Allow NullDescriptor on MVK for some reason.
* Force safe blit on MoltenVK
* Use ASTC only when formats are all available.
* Disable multilevel 3d texture views
* Filter duplicate render targets (on backend)
* Add Automatic MoltenVK Configuration
* Do not create color attachment views with formats that are not RT compatible
* Make sure that the host format matches the vertex shader input types for invalid/unknown guest formats
* FIx rebase for Vertex Attrib State
* Fix 4b alignment for vertex
* Use asynchronous queue submits for MVK
* Ensure color clear shader has correct output type
* Update MoltenVK config
* Always use MoltenVK workarounds on MacOS
* Make MVK supersede all vendors
* Fix rebase
* Various fixes on rebase
* Get portability flags from extension
* Fix some minor rebasing issues
* Style change
* Use LibraryImport for MVKConfiguration
* Rename MoltenVK vendor to Apple
Intel and AMD GPUs on moltenvk report with the those vendors - only apple silicon reports with vendor 0x106B.
* Fix features2 rebase conflict
* Rename fragment output type
* Add missing check for fragment output types
Might have caused the crash in MK8
* Only do fragment output specialization on MoltenVK
* Avoid copy when passing capabilities
* Self feedback
* Address feedback
Co-authored-by: gdk <gab.dark.100@gmail.com>
Co-authored-by: nastys <nastys@users.noreply.github.com>
2024-02-22 19:17:10 -05:00
Ac_K
8084303d7a
ava: Reorder settings of Resolution Scaler ( #4270 )
2024-02-22 19:17:10 -05:00
Isaac Marovitz
a87c0d5aa6
Ava UI: Various Fixes ( #4268 )
...
* Fix saves disappearing
* Better size formatter
* Move TextBox alignment fix to Styles
* Fix bug
* Left align
* Add border
* Update Ryujinx.Ava/UI/Models/SaveModel.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/Models/SaveModel.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/Models/SaveModel.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Whitespace
Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-02-22 19:17:10 -05:00
Isaac Marovitz
d04d7c38de
Ava UI: Settings Adjustments ( #4273 )
...
* Visual adjustments
* Match border to rest of app
* Fix overlapping controls
* Fix
* Fix
2024-02-22 19:17:10 -05:00
merry
d8c662869d
Ptc: Check process architecture ( #4272 )
2024-02-22 19:17:09 -05:00
merry
2ee6a9e20b
Arm64: Cpu feature detection ( #4264 )
...
* Arm64: Cpu feature detection
* Ptc: Add Arm64 feature info
* nits
* simplify CheckSysctlName
* restore some macos flags
* feedback
2024-02-22 19:17:09 -05:00
Ac_K
8121d3d38c
lm: Handle Tail flag in LogPacket ( #4274 )
...
* lm: Handle TailFlag in LogPacket
* Addresses feedback
2024-02-22 19:17:09 -05:00
Ac_K
0adfe0939d
Ava UI: Move Ava logging to Logger.Debug ( #4255 )
...
* Ava: Move Ava logging to Logger.Debug
Since #4231 we currently redirect Avalonia logs to our Logger, which is pretty nice. But since it uses our Logging level too, it now leads to a massive flood in our Log files.
To avoid that, I've included all `AvaLogLevel` to the log message, and make all Ava Logs using `Logger.Debug`.
* Logs errors to Error and other to Debug
* missing level
* keep var
2024-02-22 19:17:09 -05:00
Ac_K
eb12a352a6
Ava UI: Fixes PerformanceCheck condition ( #4271 )
2024-02-22 19:17:09 -05:00
Isaac Marovitz
004c4c1d72
Ava GUI: User Profile Manager + Other Fixes ( #4166 )
...
* Fix redundancies
* Add back elses
* Loading Screen fixes
* Redesign User Profile Manager
- Backported long selection bar in Grid/List view not working
- Backported UserSelector is jank
* Fix SelectionIndicator
* Fix DataType
* Fix SaveManager bug
* Remove debug log
* Load saves on UIThread
* Reduce UI thread blocking
* Fix locale keys
* Use block namespaces
* Fix close button width
* Make UserProfile ordering consistent
* Alphabetical order
* Adjust layout, remove green circle for blue selector
* Fix some inconsistencies
* Fix no inital selected profile
* Adjust appearance of edit button
* Adjust SaveManager
* Remove redundant warning dialog
* Make firmware avatar selector clearer
* View redesign again :hero_depressed:
* Consistency adjustments
* Adjust margins
* Make `UserProfileImageSelector` consistent
* Make `UserFirmwareAvatarSelector` consistent
* Fix long grid view selector
* Switch case
* Remove long selection bar
Handled in #4178
* Consistency
* Started dialog titles
* Fixes
* Remaining titles
* Update Ryujinx.Ava/UI/Controls/NavigationDialogHost.axaml
Co-authored-by: Mary-nyan <thog@protonmail.com>
* Fix build
* Hide UserRecoverer if no LostProfiles are found
* UserEditor Avatar Placeholder
* Watermark + locale adjustment
* Border radius
* Remove unnecessary styles
* Fix firmware avatar image order
* Cleanup `ColorPickerButton`
* Make `UserId` copy/paste able
* Make `FirmwareAvatarSelector` 6 images wide
* Make selection bar better
* Unsaved changes dialogue
* Fix indentation
* Remove extra check
* Address suggestions
* Reorganise
- Remove unused views
- Rename views to match convention
- Fix weird namespacing
* Update Ryujinx.Ava/UI/Views/User/UserFirmwareAvatarSelectorView.axaml
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/Views/User/UserFirmwareAvatarSelectorView.axaml
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* UserRecovererView empty placeholder
* Update Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/Views/User/UserSaveManagerView.axaml.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/Views/User/UserSaveManagerView.axaml.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/Views/User/UserSaveManagerView.axaml.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/Views/User/UserRecovererView.axaml.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/Views/User/UserFirmwareAvatarSelectorView.axaml.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/ViewModels/UserFirmwareAvatarSelectorViewModel.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/ViewModels/UserFirmwareAvatarSelectorViewModel.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/ViewModels/UserFirmwareAvatarSelectorViewModel.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/Models/UserProfile.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/Controls/NavigationDialogHost.axaml.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Ava/UI/Controls/NavigationDialogHost.axaml.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Remove AddModel
* Update Ryujinx.Ava/Assets/Locales/en_US.json
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Fix bug
Co-authored-by: Mary-nyan <thog@protonmail.com>
Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-02-22 19:17:09 -05:00