glsl: Make ir_validate check the type of ir_discard::condition.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Feb 2015 06:56:47 +0000 (22:56 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Feb 2015 23:24:52 +0000 (15:24 -0800)
commit926d8b05107f4f5fecad41ad30833a306a566303
treef84e3cc93e1e54d53d29091283229cde888584e4
parent6f5604601cefb3c656e16a7b65102740861bee90
glsl: Make ir_validate check the type of ir_discard::condition.

Copy and pasted from the ir_if::condition handling, plus a NULL check.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/ir_validate.cpp