Summary: | MSVC built u_format_test fails on Windows | ||
---|---|---|---|
Product: | Mesa | Reporter: | Vinson Lee <vlee> |
Component: | Other | Assignee: | Jose Fonseca <jfonseca> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | ageorgo |
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Windows (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Added conversion to float type |
Description
Vinson Lee
2010-08-18 18:32:54 UTC
These are the results of u_format_test on a 32-bit Windows XP Professional machine. 32-bit MSVC built u_format_test fails. 32-bit Cygwin GCC built u_format_test passes. 32-bit MinGW built u_format_test passes. Created attachment 54656 [details] [review] Added conversion to float type I am not entirely sure what is the reason for this behavior but in MSVC 2010 the following code: printf("float: %f\n", (float)(-2147483648)); printf("float: %f\n", (float)(-2147483648.0)); outputs float: 2147483648.000000 float: -2147483648.000000 After I modified the input to CLAMP operation in format_pack functions to have the trailing .0 in case of floats, the problem seems to be solved. Finally fixed with http://cgit.freedesktop.org/mesa/mesa/commit/?id=d268eac3a9c81febc5efcae7fe6854045bfc5144 . Sorry it took this long. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.