Ryujinx/Ryujinx.Graphics.Gpu
riperiperi 79092310fa
Compare aligned size for largest mip level when considering sampler resize (#2306)
* Compare aligned size for largest mip level when considering sampler resize

When selecting a texture that's a view for a sampler resize, we should take care that resizing it doesn't change the aligned size of any larger mip levels.

This PR covers two cases:
- When creating a view of the texture, we check that the aligned size of the view shifted up to level 0 still matches the aligned size of the container. If it does not, a copy dependency is created rather than resizing.
- When searching for a texture for sampler, textures that do _not_ match our aligned size when both are shifted up by its base level are not considered an exact match, as resizing the found texture will cause the mip 0 aligned size to change. It will create a copy dependency view instead.

Fixes graphical errors and crashes (on flush) in various Unity games that use render-to-texture.

* Move shared code to its own method.
2021-05-24 17:35:26 +10:00
..
Engine Use a different method for out of bounds blit (#2302) 2021-05-22 01:26:49 +02:00
Image Compare aligned size for largest mip level when considering sampler resize (#2306) 2021-05-24 17:35:26 +10:00
Memory Improve Buffer Textures and flush Image Stores (#2088) 2021-03-08 18:43:39 -03:00
Shader Fix dimensions check for scale eligibility (#2301) 2021-05-21 01:09:18 +02:00
State Fix non-independent blend state not being updated (#2303) 2021-05-22 01:08:00 +02:00
Synchronization Improved Logger (#1292) 2020-08-04 01:32:53 +02:00
ClassId.cs Implement GPU syncpoints (#980) 2020-04-19 11:25:57 +10:00
Constants.cs Improve linear texture compatibility rules (#2099) 2021-03-19 02:17:38 +01:00
GpuContext.cs Fix inconsistencies in progress reporting (#2129) 2021-03-22 19:40:07 +01:00
GraphicsConfig.cs misc: Fix default value for GraphicsConfig.MaxAnisotropy (#2274) 2021-05-07 13:18:23 -03:00
MethodParams.cs Add XML documentation to Ryujinx.Graphics.Gpu 2020-01-09 02:13:00 +01:00
Ryujinx.Graphics.Gpu.csproj infra: Migrate to .NET 5 (#1694) 2020-11-15 19:27:15 +01:00
ShadowRamControl.cs Implement MME shadow RAM (#987) 2020-03-13 12:30:26 +11:00
Window.cs Support for resources on non-contiguous GPU memory regions (#1905) 2021-01-17 19:44:34 +01:00