Commit af13df45 by Nicolas Capens Committed by Nicolas Capens

Use exact-at-power-of-two reciprocal for texture projection.

Change-Id: I1b3a4bb977ea5d311be6af9b6b8f04235b002dbe Reviewed-on: https://swiftshader-review.googlesource.com/16028Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent d0e4c2d8
...@@ -727,7 +727,7 @@ namespace sw ...@@ -727,7 +727,7 @@ namespace sw
void ShaderCore::rcpx(Vector4f &dst, const Vector4f &src, bool pp) 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.x = rcp;
dst.y = rcp; dst.y = rcp;
......
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