mesa/src
Roland Scheidegger cb438d8b3e gallivm: use llvm.nearbyint instead of llvm.round.
We used to use sse roundps intrinsic directly, but switched to use the llvm
intrinsics for rounding with e4f01da15d.
However, llvm semantics follows standard math lib round function which is
specced to do roundNearestAwayFromZero but we really want roundNearestEven
(moreoever, using round generates atrocious code since the cpu can't do it
directly and it results in scalar calls to libm __roundf).
So, use llvm.nearbyint instead, which does exactly the right thing, and even
has the advantage of being available with llvm 3.3 too. (I've verified it
actually generates a roundps instruction with llvm 3.3.)

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=94909

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2016-04-13 11:13:03 +01:00
..
compiler nir/clone: Copy bit size when cloning registers 2016-04-12 16:41:58 -07:00
egl egl: add EGL_KHR_reusable_sync to egl_dri 2016-04-05 15:24:57 +02:00
gallium gallivm: use llvm.nearbyint instead of llvm.round. 2016-04-13 11:13:03 +01:00
gbm gbm: do not wrap header inclusion in extern "C" 2016-03-09 17:16:50 +00:00
getopt
glx
gtest
hgl
loader dri: add backbuffer use flag 2016-03-09 15:02:25 +01:00
mapi mesa: expose EXT_base_instance in ES3 contexts 2016-04-03 20:40:55 -04:00
mesa scons: Allow building with Address Sanitizer. 2016-04-13 06:54:32 +01:00
util util/bitset: Allow iterating over const bitsets 2016-03-24 15:20:44 -07:00
Makefile.am
SConscript