Module Name: xsrc
Committed By: christos
Date: Fri Dec 19 18:39:58 UTC 2014
Modified Files:
xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util:
u_format_tests.c
Log Message:
Only test NAN's if we have them.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_tests.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_tests.c
diff -u xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_tests.c:1.1.1.2 xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_tests.c:1.2
--- xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_tests.c:1.1.1.2 Thu Dec 18 01:02:06 2014
+++ xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_tests.c Fri Dec 19 13:39:58 2014
@@ -900,7 +900,7 @@ util_format_test_cases[] =
/* Max representable value */
{PIPE_FORMAT_R16_FLOAT, PACKED_1x16(0xffff), PACKED_1x16(0x7bff), UNPACKED_1x1( 65504.0, 0.0, 0.0, 1.0)},
-#if !defined(PIPE_CC_MSVC)
+#if !defined(PIPE_CC_MSVC) && defined(NAN)
/* NaNs */
{PIPE_FORMAT_R16_FLOAT, PACKED_1x16(0xffff), PACKED_1x16(0x7c01), UNPACKED_1x1( NAN, 0.0, 0.0, 1.0)},