ast_to_hir: Add support for bit-wise operators (but not shifts).
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 31 Aug 2010 17:56:24 +0000 (10:56 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 31 Aug 2010 18:00:34 +0000 (11:00 -0700)
commit1eea96326fa652029e3898e104c715e5464f11e4
tree3d1493178b5de9e24143927d849e1aeb87993c0b
parent3fbbd70e80033566f5d7015fa2110a9d355bcfa4
ast_to_hir: Add support for bit-wise operators (but not shifts).

Previously, using bit-wise operators in some larger expression would
crash on a NULL pointer dereference.  This code at least doesn't crash.

Fixes piglit test bitwise-01.frag.
src/glsl/ast_to_hir.cpp