1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-04 19:12:02 +00:00
Ryujinx/Ryujinx.Graphics.Texture
riperiperi 15e7fe3ac9
Avoid deleting textures when their data does not overlap. (#2601)
* Avoid deleting textures when their data does not overlap.

It's possible that while two textures start and end addresses indicate an overlap, that the actual data contained within them is sparse due to a layer stride. One such possibility is array slices of a cubemap at different mip levels - they overlap on a whole, but the actual texture data fills the gaps between each other's layers rather than actually overlapping.

This fixes issues with UE4 games having incorrect lighting (solid white screen or really dark shadows). There are still remaining issues with games that use the 3D texture prebaked lighting, such as THPS1+2.

This PR also fixes a bug with TexturePool's resized texture handling where the base level in the descriptor was not considered.

* AllRegions granularity for 3d textures is now by level rather than by slice.

* Address feedback
2021-08-29 16:22:13 -03:00
..
Astc Supper 2D array ASTC compressed texture formats decoding (#1593) 2020-10-02 11:22:23 +10:00
BCnDecoder.cs Simplify logic for bindless texture handling (#1667) 2020-11-09 19:35:04 -03:00
BlockLinearConstants.cs Initial work 2020-01-09 02:13:00 +01:00
BlockLinearLayout.cs Fix buffer to 3D texture copy (#1354) 2020-07-04 01:37:36 +02:00
Bpp12Pixel.cs Optimize texture format conversion, and MethodCopyBuffer (#1274) 2020-06-13 19:31:06 -03:00
LayoutConverter.cs Return mapped buffer pointer directly for flush, WriteableRegion for textures (#2494) 2021-07-19 19:10:54 -03:00
OffsetCalculator.cs New NVDEC and VIC implementation (#1384) 2020-07-12 05:07:01 +02:00
Region.cs Avoid deleting textures when their data does not overlap. (#2601) 2021-08-29 16:22:13 -03:00
Ryujinx.Graphics.Texture.csproj infra: Migrate to .NET 5 (#1694) 2020-11-15 19:27:15 +01:00
Size.cs Initial work 2020-01-09 02:13:00 +01:00
SizeCalculator.cs Texture Cache: "Texture Groups" and "Texture Dependencies" (#2001) 2021-03-02 19:30:54 -03:00
SizeInfo.cs Avoid deleting textures when their data does not overlap. (#2601) 2021-08-29 16:22:13 -03:00