[Piglit] [PATCH v3 5/5] Add a test of isinf() and isnan() functionality.

Eric Anholt eric at anholt.net
Fri Oct 14 11:07:35 PDT 2011


On Thu, 13 Oct 2011 13:45:37 -0700, Paul Berry <stereotype441 at gmail.com> wrote:
> isinf() and isnan() are difficult to test, since the GLSL 1.30 spec
> does not define when an implemenation is required to generate infinite
> or NaN values; in fact, it explicitly allows for implementations that
> do not even have a representation of infinity or NaN.
> 
> This test verifies that if the implementation does generate infinite
> or NaN values, they behave in a consistent way, and that when it
> claims that a value is finite, it truly is finite.
> 
> Tested on the nVidia proprietary Linux driver, which passes all tests.

Looks good to me.

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- 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/20111014/a32acc1e/attachment.pgp>


More information about the Piglit mailing list