1
0
Fork 0
forked from suyu/suyu

GPU: Implemented the F2F 'round' rounding mode.

It's implemented via the GLSL 'roundEven()' function.
This commit is contained in:
Subv 2018-07-04 15:24:04 -05:00
parent 81a44d38ee
commit d800a02b4b

View file

@ -1213,6 +1213,9 @@ private:
switch (instr.conversion.f2f.rounding) { switch (instr.conversion.f2f.rounding) {
case Tegra::Shader::F2fRoundingOp::None: case Tegra::Shader::F2fRoundingOp::None:
break; break;
case Tegra::Shader::F2fRoundingOp::Round:
op_a = "roundEven(" + op_a + ')';
break;
case Tegra::Shader::F2fRoundingOp::Floor: case Tegra::Shader::F2fRoundingOp::Floor:
op_a = "floor(" + op_a + ')'; op_a = "floor(" + op_a + ')';
break; break;