glsl: Make ir_reader able to read plain (return) statements.
authorPaul Berry <stereotype441@gmail.com>
Wed, 29 Jun 2011 22:30:40 +0000 (15:30 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 8 Jul 2011 16:59:29 +0000 (09:59 -0700)
commitf4830be938c8fa33086f73cab19a53ab3e14cb9c
tree9d612f1c89c04fef67fceae84bef60a33d332329
parent5fb79fc69f56cf2d8d44e4c6c2d8b862bc631139
glsl: Make ir_reader able to read plain (return) statements.

Previously ir_reader was only able to handle return of non-void.

This patch is necessary in order to allow optimization passes to be
tested in isolation.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_reader.cpp