glsl: Let ir_builder expressions take un-dereferenced variables.
authorEric Anholt <eric@anholt.net>
Mon, 19 Mar 2012 21:04:23 +0000 (14:04 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 14 Apr 2012 00:01:03 +0000 (17:01 -0700)
commitd6e6566206029ace72ba037a3ef7950876eeb88b
tree1b95dbeb4487588918af6773a6a4f9a435126e12
parent599aac95ff2149d881177ed75a48d97d3dcf47bd
glsl: Let ir_builder expressions take un-dereferenced variables.

Having to explicitly dereference is irritating and bloats the code,
when the compiler can detect and do the right thing.

v2: Use a little shim class to produce the automatic dereference
    generation at compile time as opposed to runtime, while also
    allowing compile-time type checking.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_builder.cpp
src/glsl/ir_builder.h
src/mesa/main/ff_fragment_shader.cpp