Commit a781af7d by Alexis Hetu Committed by Alexis Hétu

Minor fix for log2

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/10429Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 027288cc
...@@ -978,10 +978,10 @@ namespace sw ...@@ -978,10 +978,10 @@ namespace sw
void ShaderCore::log2(Vector4f &dst, const Vector4f &src, bool pp) void ShaderCore::log2(Vector4f &dst, const Vector4f &src, bool pp)
{ {
dst.x = logarithm2(src.x, pp); dst.x = logarithm2(src.x, false, pp);
dst.y = logarithm2(src.y, pp); dst.y = logarithm2(src.y, false, pp);
dst.z = logarithm2(src.z, pp); dst.z = logarithm2(src.z, false, pp);
dst.w = logarithm2(src.w, pp); dst.w = logarithm2(src.w, false, pp);
} }
void ShaderCore::log(Vector4f &dst, const Vector4f &src, bool pp) void ShaderCore::log(Vector4f &dst, const Vector4f &src, bool pp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment