mesa/src
José Fonseca b238c756da util/format: Fix clamping to 32bit integers.
Use clamping constants that guarantee no integer overflows.

As spotted by Chris Forbes.

This causes the code to change as:

-         value |= (uint32_t)CLAMP(src[0], 0.0f, 4294967295.0f);
+         value |= (uint32_t)CLAMP(src[0], 0.0f, 4294967040.0f);

-         value |= (uint32_t)((int32_t)CLAMP(src[0], -2147483648.0f, 2147483647.0f));
+         value |= (uint32_t)((int32_t)CLAMP(src[0], -2147483648.0f, 2147483520.0f));

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2014-11-08 10:32:39 +00:00
..
egl egl_dri2: add a note about dri2_create_screen 2014-11-07 18:31:23 +00:00
gallium util/format: Fix clamping to 32bit integers. 2014-11-08 10:32:39 +00:00
gbm gbm/dri: cleanup memory leak on teardown 2014-11-07 18:32:07 +00:00
getopt
glsl glsl/list: Revert unintentional file mode change in previous commit. 2014-11-07 21:04:08 -08:00
glx glx/dri3: Implement LIBGL_SHOW_FPS=1 for DRI3/Present. 2014-10-29 15:13:58 -07:00
gtest gtest: Update to 1.7.0. 2014-04-14 00:06:53 -07:00
hgl gallium/targets: Break haiku state_tracker out to own directory 2014-08-28 21:27:29 -04:00
loader loader: Check dlsym() did not fail in libudev_get_device_name_for_fd() 2014-09-23 10:25:02 +03:00
mapi mesa: Add support for the GL_KHR_context_flush_control extension 2014-10-28 16:40:18 +00:00
mesa i965: drop the custom gen8_instruction CFLAG 2014-11-07 18:32:17 +00:00
util util: Implement unreachable for MSVC using __assume 2014-11-05 09:36:04 -08:00
Makefile.am automake: handle gallium SUBDIRs in gallium/Makefile 2014-08-13 00:46:54 +01:00
SConscript util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00