mesa/src
Ian Romanick 3946448951 glsl: Don't use base type for bit-not when there's an error
Other parts of the compiler assume that expressions will have
well-formed types or the error type.  Just using the type of the thing
being operated on can cause expressions like ~3.14 or ~false to not
have a well-formed type.  This could then result in an assertion
failure in the context epxression handler.

If there is an error processing the expression, set the type of the IR
expression to error.

Fixes piglit's bit-not-0[789].frag tests.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42755
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Vinson Lee <vlee@vmware.com>
2012-01-04 12:43:10 -08:00
..
egl egl/x11: Merge the right version of Frederiks change 2011-12-21 10:29:30 -05:00
gallium gallium/util: fix argument cast in x32_s8_get_tile_rgba() call 2012-01-04 13:35:13 -07:00
gbm gbm/dri: avoid crash in dri_screen_create 2011-08-04 14:09:34 +02:00
getopt
glsl glsl: Don't use base type for bit-not when there's an error 2012-01-04 12:43:10 -08:00
glu glu: remove BeOS define as BeOS is not longer a target platform 2011-12-27 09:16:51 -07:00
glx glx: More hacking around versions of XCB that lack GLX_ARB_create_context support 2012-01-04 12:43:10 -08:00
mapi Regenerate files from previous commits 2011-12-13 16:07:17 -08:00
mesa st/mesa: remove st_CompressedTexSubImage1D/2D/3D() 2012-01-04 13:30:41 -07:00
Makefile
SConscript scons: Unbreak mingw build. 2011-09-20 20:50:48 +01:00