diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2019-12-31 19:22:45 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 9bfb373bdf85178ef319fa4d107ae20d0a2d4a04 (patch) | |
| tree | 809b39c2c15008ce62f78c023d6be113fedc189d /Ryujinx.Graphics.Shader | |
| parent | 59fdaa744b20f91928ee3fcaf5fabfcb7b409451 (diff) | |
Remove more unused code
Diffstat (limited to 'Ryujinx.Graphics.Shader')
| -rw-r--r-- | Ryujinx.Graphics.Shader/QueryInfoName.cs | 3 | ||||
| -rw-r--r-- | Ryujinx.Graphics.Shader/Translation/EmitterContext.cs | 13 | ||||
| -rw-r--r-- | Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs | 2 |
3 files changed, 2 insertions, 16 deletions
diff --git a/Ryujinx.Graphics.Shader/QueryInfoName.cs b/Ryujinx.Graphics.Shader/QueryInfoName.cs index e976dcdb..1d87c2c8 100644 --- a/Ryujinx.Graphics.Shader/QueryInfoName.cs +++ b/Ryujinx.Graphics.Shader/QueryInfoName.cs @@ -11,7 +11,6 @@ namespace Ryujinx.Graphics.Shader MaximumViewportDimensions, PrimitiveTopology, StorageBufferOffsetAlignment, - SupportsNonConstantTextureOffset, - ViewportTransformEnable + SupportsNonConstantTextureOffset } }
\ No newline at end of file diff --git a/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs b/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs index 9620145a..e6334fea 100644 --- a/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs +++ b/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs @@ -59,18 +59,7 @@ namespace Ryujinx.Graphics.Shader.Translation public void PrepareForReturn() { - if (_config.Stage == ShaderStage.Vertex) - { - if (!_config.QueryInfoBool(QueryInfoName.ViewportTransformEnable)) - { - Operand posX = Attribute(AttributeConsts.PositionX); - Operand posY = Attribute(AttributeConsts.PositionY); - - this.Copy(posX, this.FPDivide(posX, ConstF(_config.QueryInfo(QueryInfoName.MaximumViewportDimensions) / 2))); - this.Copy(posY, this.FPDivide(posY, ConstF(_config.QueryInfo(QueryInfoName.MaximumViewportDimensions) / 2))); - } - } - else if (_config.Stage == ShaderStage.Fragment) + if (_config.Stage == ShaderStage.Fragment) { if (_config.OmapDepth) { diff --git a/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs b/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs index 78dcde49..d73a268e 100644 --- a/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs +++ b/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs @@ -94,8 +94,6 @@ namespace Ryujinx.Graphics.Shader.Translation return 16; case QueryInfoName.SupportsNonConstantTextureOffset: return Convert.ToInt32(true); - case QueryInfoName.ViewportTransformEnable: - return Convert.ToInt32(true); } } |
