commit | af13df45ca3aba76691a97bc7c12843cb74c488c | [log] [tgz] |
---|---|---|
author | Nicolas Capens <capn@google.com> | Tue Jan 09 16:27:15 2018 -0500 |
committer | Nicolas Capens <nicolascapens@google.com> | Wed Jan 10 02:40:21 2018 +0000 |
tree | c22e5b397359193653c7b6be21dab7f033bf8b25 | |
parent | d0e4c2d8f3b120c2fb0fdc22d2ac457b96b015b6 [diff] [blame] |
Use exact-at-power-of-two reciprocal for texture projection. Change-Id: I1b3a4bb977ea5d311be6af9b6b8f04235b002dbe Reviewed-on: https://swiftshader-review.googlesource.com/16028 Tested-by: Nicolas Capens <nicolascapens@google.com> Reviewed-by: Alexis Hétu <sugoi@google.com> Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Shader/ShaderCore.cpp b/src/Shader/ShaderCore.cpp index 58e535c..559208c 100644 --- a/src/Shader/ShaderCore.cpp +++ b/src/Shader/ShaderCore.cpp
@@ -727,7 +727,7 @@ void ShaderCore::rcpx(Vector4f &dst, const Vector4f &src, bool pp) { - Float4 rcp = reciprocal(src.x, pp, true); + Float4 rcp = reciprocal(src.x, pp, true, true); dst.x = rcp; dst.y = rcp;