Ryujinx/Ryujinx.Graphics.GAL/Multithreading/Commands
riperiperi 9f1cf6458c
Vulkan: Migrate buffers between memory types to improve GPU performance (#4540)
* Initial implementation of migration between memory heaps

- Missing OOM handling
- Missing `_map` data safety when remapping
  - Copy may not have completed yet (needs some kind of fence)
  - Map may be unmapped before it is done being used. (needs scoped access)
- SSBO accesses are all "writes" - maybe pass info in another way.
- Missing keeping map type when resizing buffers (should this be done?)

* Ensure migrated data is in place before flushing.

* Fix issue where old waitable would be signalled.

- There is a real issue where existing Auto<> references need to be replaced.

* Swap bound Auto<> instances when swapping buffer backing

* Fix conversion buffers

* Don't try move buffers if the host has shared memory.

* Make GPU methods return PinnedSpan with scope

* Storage Hint

* Fix stupidity

* Fix rebase

* Tweak rules

Attempt to sidestep BOTW slowdown

* Remove line

* Migrate only when command buffers flush

* Change backing swap log to debug

* Address some feedback

* Disallow backing swap when the flush lock is held by the current thread

* Make PinnedSpan from ReadOnlySpan explicitly unsafe

* Fix some small issues

- Index buffer swap fixed
- Allocate DeviceLocal buffers using a separate block list to images.

* Remove alternative flags

* Address feedback
2023-03-19 17:56:48 -03:00
..
Buffer Vulkan: Migrate buffers between memory types to improve GPU performance (#4540) 2023-03-19 17:56:48 -03:00
CounterEvent Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
Program Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
Renderer Vulkan: Migrate buffers between memory types to improve GPU performance (#4540) 2023-03-19 17:56:48 -03:00
Sampler Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
Texture Vulkan: Migrate buffers between memory types to improve GPU performance (#4540) 2023-03-19 17:56:48 -03:00
Window Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
BarrierCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
BeginTransformFeedbackCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
ClearBufferCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
ClearRenderTargetColorCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
ClearRenderTargetDepthStencilCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
CommandBufferBarrierCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
CopyBufferCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
DispatchComputeCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
DrawCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
DrawIndexedCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
DrawIndexedIndirectCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
DrawIndexedIndirectCountCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
DrawIndirectCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
DrawIndirectCountCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
DrawTextureCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
EndHostConditionalRenderingCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
EndTransformFeedbackCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
IGALCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetAlphaTestCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetBlendStateAdvancedCommand.cs Add support for advanced blend (part 1/2) (#2801) 2023-02-19 22:37:37 -03:00
SetBlendStateCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetDepthBiasCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetDepthClampCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetDepthModeCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetDepthTestCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetFaceCullingCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetFrontFaceCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetImageCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetIndexBufferCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetLineParametersCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetLogicOpStateCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetMultisampleStateCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetPatchParametersCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetPointParametersCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetPolygonModeCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetPrimitiveRestartCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetPrimitiveTopologyCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetProgramCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetRasterizerDiscardCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetRenderTargetColorMasksCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetRenderTargetScaleCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetRenderTargetsCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetScissorsCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetStencilTestCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetStorageBuffersCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetTextureAndSamplerCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetTransformFeedbackBuffersCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetUniformBuffersCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetUserClipDistanceCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetVertexAttribsCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetVertexBuffersCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
SetViewportsCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
TextureBarrierCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
TextureBarrierTiledCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
TryHostConditionalRenderingCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
TryHostConditionalRenderingFlushCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00
UpdateRenderScaleCommand.cs Remove use of reflection on GAL multithreading (#4287) 2023-01-22 01:07:43 +01:00