mesa/src
Brian Paul c51c822ee0 i965: rewrite the code for handling shader subroutine calls
Previously, the prog_instruction::Data field was used to map original Mesa
instructions to brw instructions in order to resolve subroutine calls.  This
was a rather tangled mess.  Plus it's an obstacle to implementing dynamic
allocation/growing of the instruction buffer (it's still a fixed size).

Mesa's GLSL compiler emits a label for each subroutine and CAL instruction.
Now we use those labels to patch the subroutine calls after code generation
has been done.  We just keep a list of all CAL instructions that needs patching
and a list of all subroutine labels.  It's a simple matter to resolve them.

This also consolidates some redundant post-emit code between brw_vs_emit.c and
brw_wm_glsl.c and removes some loops that cleared the prog_instruction::Data
fields at the end.

Plus, a bunch of new comments.
2009-02-13 17:18:36 -07:00
..
driclient
egl Add install target for egl 2009-02-11 07:01:40 +01:00
gallium r300-gallium: Various thingies. 2009-02-13 08:18:26 -08:00
glew Add dummy install target for glew to fix 'make install' 2009-02-13 07:41:51 -08:00
glu
glut glut: Use the official WGL functions. 2009-02-10 11:51:46 +00:00
glw
glx dri2: Don't crash if the server returns more buffers than expected. 2009-02-10 18:45:17 -08:00
mesa i965: rewrite the code for handling shader subroutine calls 2009-02-13 17:18:36 -07:00
xvmc
Makefile
SConscript