summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraroulin <andy.roulin@epfl.ch>2015-08-23 22:03:07 +0200
committeraroulin <andy.roulin@epfl.ch>2015-08-23 22:03:07 +0200
commit03c5cfead4a6ad75097e736062b25f9a7e6082cd (patch)
treebc611c82bd9b68b24885e5d4611b3021c6501fe7
parentShader: RCP and RSQ computes only the 1st component (diff)
downloadyuzu-03c5cfead4a6ad75097e736062b25f9a7e6082cd.tar
yuzu-03c5cfead4a6ad75097e736062b25f9a7e6082cd.tar.gz
yuzu-03c5cfead4a6ad75097e736062b25f9a7e6082cd.tar.bz2
yuzu-03c5cfead4a6ad75097e736062b25f9a7e6082cd.tar.lz
yuzu-03c5cfead4a6ad75097e736062b25f9a7e6082cd.tar.xz
yuzu-03c5cfead4a6ad75097e736062b25f9a7e6082cd.tar.zst
yuzu-03c5cfead4a6ad75097e736062b25f9a7e6082cd.zip
-rw-r--r--src/video_core/shader/shader_interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/shader_interpreter.cpp b/src/video_core/shader/shader_interpreter.cpp
index 51fee6f97..76fda95f3 100644
--- a/src/video_core/shader/shader_interpreter.cpp
+++ b/src/video_core/shader/shader_interpreter.cpp
@@ -237,7 +237,7 @@ void RunInterpreter(UnitState<Debug>& state) {
{
Record<DebugDataRecord::SRC1>(state.debug, iteration, src1);
Record<DebugDataRecord::DEST_IN>(state.debug, iteration, dest);
- float24 rsq_res = float24::FromFloat32(1.0f / sqrt(src1[0].ToFloat32()));
+ float24 rsq_res = float24::FromFloat32(1.0f / std::sqrt(src1[0].ToFloat32()));
for (int i = 0; i < 4; ++i) {
if (!swizzle.DestComponentEnabled(i))
continue;