glsl: Make a little tracking class for emitting IR lists.
authorEric Anholt <eric@anholt.net>
Mon, 19 Mar 2012 23:01:52 +0000 (16:01 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 14 Apr 2012 00:01:14 +0000 (17:01 -0700)
commit7e88f8ce8f9d72bbda248554e0630b4aca7e1154
treeb5826b0f173c1df998b0eb077392d9bad56f0ccf
parentb782352745d322596a9122969f5c0e57ea032c1b
glsl: Make a little tracking class for emitting IR lists.

This lets us significantly shorten p->instructions->push_tail(ir), and
will be used in a few more places.

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