1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-10-01 12:30:00 +02:00
Ryujinx/Ryujinx.Graphics.Gpu/Shader/DiskCache
riperiperi f92650fcff
SPIR-V: Initialize undefined variables with 0 (#3526)
* SPIR-V: Initialize undefined variables with a value

Changes undefined values on spir-v shaders (caused by phi nodes) to be initialized instead of truly undefined.

Fixes an issue with NVIDIA gpus seemingly not liking when a variable is _potentially_ undefined. Not sure about the details at the moment.

Fixes:
- Tilt shift blur effect in Link's Awakening (bottom of the screen)
- Potentially block flickering on newer NVIDIA gpus in Splatoon 2? Needs testing.

Testing is welcome.

* Update Ryujinx.Graphics.Shader/CodeGen/Spirv/CodeGenContext.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2022-08-02 08:11:10 +02:00
..
BackgroundDiskCacheWriter.cs Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
BinarySerializer.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
CompressionAlgorithm.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
DiskCacheCommon.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
DiskCacheGpuAccessor.cs Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
DiskCacheGuestStorage.cs Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
DiskCacheHostStorage.cs SPIR-V: Initialize undefined variables with 0 (#3526) 2022-08-02 08:11:10 +02:00
DiskCacheLoadException.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
DiskCacheLoadResult.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
DiskCacheOutputStreams.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
GuestCodeAndCbData.cs Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
ParallelDiskCacheLoader.cs Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
ShaderBinarySerializer.cs Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00