From a781af7d5a1930d82d20c0cbc9d66fc8a42391e0 Mon Sep 17 00:00:00 2001 From: Alexis Hetu Date: Thu, 6 Jul 2017 17:12:47 -0400 Subject: [PATCH] Minor fix for log2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Nicolas Capens --- src/Shader/ShaderCore.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Shader/ShaderCore.cpp b/src/Shader/ShaderCore.cpp index 424636be1..5799d3f02 100644 --- a/src/Shader/ShaderCore.cpp +++ b/src/Shader/ShaderCore.cpp @@ -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) -- 2.11.0