[Piglit] [PATCH 4/4] vs|fs-sqrt-zero: test sqrt(x) with uniform x=0

Eric Anholt eric at anholt.net
Fri Jul 20 13:40:11 PDT 2012

Brian Paul <brianp at vmware.com> writes:

> Since sqrt(x) is typically implemented with a reciprocal square root, zero
> is a special case.  Mesa's GLSL->TGSI translator uses a CND instruction to
> return 0 if x<=0.

Looks like these tests already the issue more generally:


so I think my old sqrt-zero code could just be removed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20120720/5162fe34/attachment.pgp>

More information about the Piglit mailing list