glsl2: Move gl_program->InputsRead/OutputsWritten setting to an ir pass.
authorEric Anholt <eric@anholt.net>
Fri, 6 Aug 2010 20:07:25 +0000 (13:07 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 6 Aug 2010 20:22:31 +0000 (13:22 -0700)
commit925b49ff310bf0b307add7c34627cddf87e6a554
tree07301c8745a5171a4b4ff0511a87ed505043262b
parentc234d0b25f622a7bdd3c40bc72fdbd59d8494c7c
glsl2: Move gl_program->InputsRead/OutputsWritten setting to an ir pass.

This lets us handle arrays much better than trying to work backwards
from assembly.

Fixes fbo-drawbuffers-maxtargets on swrast (i965 needs loop unrolling)
src/glsl/Makefile
src/glsl/ir.h
src/glsl/ir_set_program_inouts.cpp [new file with mode: 0644]
src/mesa/program/ir_to_mesa.cpp