Ryujinx-uplift/src/Ryujinx.Graphics.Gpu/Shader
riperiperi 95bad6995c
GPU: Fix shader cache assuming past shader data was mapped (#4885)
This fixes a potential issue where a shader lookup could match the address of a previous _different_ shader, but that shader is now partially unmapped. This would just crash with an invalid region exception.

To compare a shader in the address cache with one in memory, we get the memory at the location with the previous shader's size. However, it's possible it has been unmapped and then remapped with a smaller size. In this case, we should just get back the mapped portion of the shader, which will then fail the comparison immediately and get to compile/lookup for the new one.

This might fix a random crash in TOTK that was reported by Piplup. I don't know if it does, because I don't have the game yet.
2023-05-11 18:41:34 +02:00
..
DiskCache UI: Add progress bar for re-packaging shaders (#4805) 2023-05-06 15:35:46 +02:00
HashTable Move solution and projects to src 2023-04-27 23:51:14 +02:00
CachedShaderBindings.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
CachedShaderProgram.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
CachedShaderStage.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
ComputeShaderCacheHashTable.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
GpuAccessor.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
GpuAccessorBase.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
GpuAccessorState.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
GpuChannelComputeState.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
GpuChannelGraphicsState.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
GpuChannelPoolState.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
ResourceCounts.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
ShaderAddresses.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
ShaderCache.cs GPU: Fix shader cache assuming past shader data was mapped (#4885) 2023-05-11 18:41:34 +02:00
ShaderCacheHashTable.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
ShaderCacheState.cs UI: Add progress bar for re-packaging shaders (#4805) 2023-05-06 15:35:46 +02:00
ShaderCodeAccessor.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
ShaderDumper.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
ShaderDumpPaths.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
ShaderSpecializationList.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
ShaderSpecializationState.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
TransformFeedbackDescriptor.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00