diff options
| author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-24 01:46:58 -0300 |
|---|---|---|
| committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-24 01:46:58 -0300 |
| commit | 082b74fa241ba71f27b2e3fdf756824a0467f7f4 (patch) | |
| tree | 4bc4da888d196924e300d4f853855ac6d55fafa9 /src/video_core/shader/shader_jit_x64.cpp | |
| parent | 76247170dfc43d1d01f71447893915ec02686990 (diff) | |
Shaders: Explicitly conform to PICA semantics in MAX/MIN
Diffstat (limited to 'src/video_core/shader/shader_jit_x64.cpp')
| -rw-r--r-- | src/video_core/shader/shader_jit_x64.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp index e56bff2b8..456c8567d 100644 --- a/src/video_core/shader/shader_jit_x64.cpp +++ b/src/video_core/shader/shader_jit_x64.cpp @@ -467,6 +467,7 @@ void JitCompiler::Compile_FLR(Instruction instr) { void JitCompiler::Compile_MAX(Instruction instr) { Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1); Compile_SwizzleSrc(instr, 2, instr.common.src2, SRC2); + // SSE semantics match PICA200 ones: In case of NaN, SRC2 is returned. MAXPS(SRC1, R(SRC2)); Compile_DestEnable(instr, SRC1); } @@ -474,6 +475,7 @@ void JitCompiler::Compile_MAX(Instruction instr) { void JitCompiler::Compile_MIN(Instruction instr) { Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1); Compile_SwizzleSrc(instr, 2, instr.common.src2, SRC2); + // SSE semantics match PICA200 ones: In case of NaN, SRC2 is returned. MINPS(SRC1, R(SRC2)); Compile_DestEnable(instr, SRC1); } |
