OSDN Git Service

Minor fix for log2
authorAlexis Hetu <sugoi@google.com>
Thu, 6 Jul 2017 21:12:47 +0000 (17:12 -0400)
committerAlexis Hétu <sugoi@google.com>
Fri, 7 Jul 2017 14:10:41 +0000 (14:10 +0000)
No behavior is modified in this cl. log2() was calling logarithm2()
with the wrong options, but logarithm2() currently ignores all
options, so this had no consequence. Fixing to prevent future errors.

Change-Id: I6518d9d90fc1f34cadab2de12657064b2510b463
Reviewed-on: https://swiftshader-review.googlesource.com/10429
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/Shader/ShaderCore.cpp

index 424636b..5799d3f 100644 (file)
@@ -978,10 +978,10 @@ namespace sw
 
        void ShaderCore::log2(Vector4f &dst, const Vector4f &src, bool pp)
        {
-               dst.x = logarithm2(src.x, pp);
-               dst.y = logarithm2(src.y, pp);
-               dst.z = logarithm2(src.z, pp);
-               dst.w = logarithm2(src.w, pp);
+               dst.x = logarithm2(src.x, false, pp);
+               dst.y = logarithm2(src.y, false, pp);
+               dst.z = logarithm2(src.z, false, pp);
+               dst.w = logarithm2(src.w, false, pp);
        }
 
        void ShaderCore::log(Vector4f &dst, const Vector4f &src, bool pp)