aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Instructions
diff options
context:
space:
mode:
authorgdk <gab.dark.100@gmail.com>2019-10-27 17:51:33 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit3bcc395253e020df40763d36ba9401b126b17173 (patch)
treec172daab458b1447d7aa69832fd10068bc9ca1b6 /Ryujinx.Graphics.Shader/Instructions
parentd3fcab85112708707eacc4c71a8362b9c178218d (diff)
Add shader support for the round mode on the F2F instruction, support mipmaps on ASTC compressed textures
Diffstat (limited to 'Ryujinx.Graphics.Shader/Instructions')
-rw-r--r--Ryujinx.Graphics.Shader/Instructions/InstEmitConversion.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitConversion.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitConversion.cs
index c4de1750..95e9a20a 100644
--- a/Ryujinx.Graphics.Shader/Instructions/InstEmitConversion.cs
+++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitConversion.cs
@@ -29,6 +29,10 @@ namespace Ryujinx.Graphics.Shader.Instructions
{
switch (op.RoundingMode)
{
+ case RoundingMode.ToNearest:
+ srcB = context.FPRound(srcB);
+ break;
+
case RoundingMode.TowardsNegativeInfinity:
srcB = context.FPFloor(srcB);
break;