summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_jit_x64.cpp
diff options
context:
space:
mode:
authoraroulin <andy.roulin@epfl.ch>2015-08-23 15:13:36 +0200
committeraroulin <andy.roulin@epfl.ch>2015-08-23 22:01:17 +0200
commitfa552f11ef1f96afab715c9653c705e3fbbe2a74 (patch)
tree152cb8e6321e7d02b61893079573ac0b2d07ce68 /src/video_core/shader/shader_jit_x64.cpp
parentx64-emitter: add RCPSS SSE instruction (diff)
downloadyuzu-fa552f11ef1f96afab715c9653c705e3fbbe2a74.tar
yuzu-fa552f11ef1f96afab715c9653c705e3fbbe2a74.tar.gz
yuzu-fa552f11ef1f96afab715c9653c705e3fbbe2a74.tar.bz2
yuzu-fa552f11ef1f96afab715c9653c705e3fbbe2a74.tar.lz
yuzu-fa552f11ef1f96afab715c9653c705e3fbbe2a74.tar.xz
yuzu-fa552f11ef1f96afab715c9653c705e3fbbe2a74.tar.zst
yuzu-fa552f11ef1f96afab715c9653c705e3fbbe2a74.zip
Diffstat (limited to 'src/video_core/shader/shader_jit_x64.cpp')
-rw-r--r--src/video_core/shader/shader_jit_x64.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp
index a1bdd8456..e52fe43fb 100644
--- a/src/video_core/shader/shader_jit_x64.cpp
+++ b/src/video_core/shader/shader_jit_x64.cpp
@@ -496,9 +496,10 @@ void JitCompiler::Compile_MOV(Instruction instr) {
void JitCompiler::Compile_RCP(Instruction instr) {
Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1);
- // TODO(bunnei): RCPPS is a pretty rough approximation, this might cause problems if Pica
+ // TODO(bunnei): RCPSS is a pretty rough approximation, this might cause problems if Pica
// performs this operation more accurately. This should be checked on hardware.
- RCPPS(SRC1, R(SRC1));
+ RCPSS(SRC1, R(SRC1));
+ SHUFPS(SRC1, R(SRC1), _MM_SHUFFLE(0, 0, 0, 0)); // XYWZ -> XXXX
Compile_DestEnable(instr, SRC1);
}
@@ -506,9 +507,10 @@ void JitCompiler::Compile_RCP(Instruction instr) {
void JitCompiler::Compile_RSQ(Instruction instr) {
Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1);
- // TODO(bunnei): RSQRTPS is a pretty rough approximation, this might cause problems if Pica
+ // TODO(bunnei): RSQRTSS is a pretty rough approximation, this might cause problems if Pica
// performs this operation more accurately. This should be checked on hardware.
- RSQRTPS(SRC1, R(SRC1));
+ RSQRTSS(SRC1, R(SRC1));
+ SHUFPS(SRC1, R(SRC1), _MM_SHUFFLE(0, 0, 0, 0)); // XYWZ -> XXXX
Compile_DestEnable(instr, SRC1);
}