Mesa (master): gallium/util: Truly disable INF/NAN tests on MSVC.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Jun 29 13:49:49 UTC 2012


Module: Mesa
Branch: master
Commit: 16e0ebccb61b65a58db4b3bb1a25a953515eab90
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=16e0ebccb61b65a58db4b3bb1a25a953515eab90

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Jun 29 13:39:07 2012 +0100

gallium/util: Truly disable INF/NAN tests on MSVC.

Thanks to Brian for spotting this.

---

 src/gallium/auxiliary/util/u_format_tests.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_format_tests.c b/src/gallium/auxiliary/util/u_format_tests.c
index 9f6d17c..457fda6 100644
--- a/src/gallium/auxiliary/util/u_format_tests.c
+++ b/src/gallium/auxiliary/util/u_format_tests.c
@@ -897,7 +897,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)
 
    /* NaNs */
    {PIPE_FORMAT_R16_FLOAT, PACKED_1x16(0xffff), PACKED_1x16(0x7c01), UNPACKED_1x1(        NAN, 0.0, 0.0, 1.0)},




More information about the mesa-commit mailing list