Archived
1
0
Fork 0
forked from Mirror/Ryujinx
This repository has been archived on 2024-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
jinx/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions
riperiperi 79adba4402
Add support for render scale to vertex stage. (#2763)
* Add support for render scale to vertex stage.

Occasionally games read off textureSize on the vertex stage to inform the fragment shader what size a texture is without querying in there. Scales were not present in the vertex shader to correct the sizes, so games were providing the raw upscaled texture size to the fragment shader, which was incorrect.

One downside is that the fragment and vertex support buffer description must be identical, so the full size scales array must be defined when used. I don't think this will have an impact though. Another is that the fragment texture count must be updated when vertex shader textures are used. I'd like to correct this so that the update is folded into the update for the scales.

Also cleans up a bunch of things, like it making no sense to call CommitRenderScale for each stage.

Fixes render scale causing a weird offset bloom in Super Mario Party and Clubhouse Games. Clubhouse Games still has a pixelated look in a number of its games due to something else it does in the shader.

* Split out support buffer update, lazy updates.

* Commit support buffer before compute dispatch

* Remove unnecessary qualifier.

* Address Feedback
2022-01-08 14:48:48 -03:00
..
InstGen.cs Implement remaining shader double-precision instructions (#2845) 2021-12-08 17:54:12 -03:00
InstGenBallot.cs Use shader subgroup extensions if shader ballot is not supported (#2627) 2021-09-19 14:38:39 +02:00
InstGenCall.cs Implement CAL and RET shader instructions (#1618) 2020-10-25 17:00:44 -03:00
InstGenFSI.cs Add support for fragment shader interlock (#2768) 2021-10-28 19:53:12 -03:00
InstGenHelper.cs Fix FLO.SH shader instruction with a input of 0 (#2876) 2021-12-05 13:25:05 +01:00
InstGenMemory.cs Add support for render scale to vertex stage. (#2763) 2022-01-08 14:48:48 -03:00
InstGenPacking.cs Initial support for double precision shader instructions. (#963) 2020-03-03 15:02:08 +01:00
InstInfo.cs Initial work 2020-01-09 02:13:00 +01:00
InstType.cs Add a pass to turn global memory access into storage access, and do all storage related transformations on IR 2020-01-09 02:13:00 +01:00