mesa/src
Chad Versace cf0bbb30f6 i965/fs: Fix conversions float->bool, int->bool
Fixes gles2conform GL.equal.equal_bvec2_frag.

This fixes brw_fs_visitor's translation of ir_unop_f2b.  It used CMP to
convert the float to one of 0 or ~0. However, the convention in the
compiler is that true is represented by 1, not ~0. This patch adds an AND
to convert ~0 to 1.

By inspection, a similar problem existed with ir_unop_i2b, with a similar
fix.

[v2 kayden]: eliminate extra temporary register.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49621
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-06-25 15:56:40 -07:00
..
egl automake: Convert src/egl/Makefile to automake. 2012-06-21 09:58:12 -07:00
gallium st/wgl: 80-column wrapping 2012-06-25 16:10:01 -06:00
gbm gbm: Add gbm_bo_write entry point 2012-05-03 10:57:32 -04:00
getopt
glsl glsl: Add IsCentroid bitfield to gl_fragment_program. 2012-06-25 11:03:26 -07:00
glu glu: fix two Clang warnings 2012-05-21 08:29:23 -06:00
glx glx/tests: Fix signed/unsigned comparison warnings. 2012-06-20 11:42:42 -07:00
gtest
mapi glapi: Add uniform buffer object API 2012-06-21 10:57:45 -07:00
mesa i965/fs: Fix conversions float->bool, int->bool 2012-06-25 15:56:40 -07:00
.gitignore automake: Convert src/Makefile to automake. 2012-06-11 09:28:00 -07:00
Makefile.am automake: Convert src/Makefile to automake. 2012-06-11 09:28:00 -07:00
SConscript scons: add code to generate the various GL API files 2012-05-31 09:40:35 -06:00