mesa: revamp GLSL instruction emit code
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 14 Nov 2008 00:02:11 +0000 (17:02 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 14 Nov 2008 01:19:12 +0000 (18:19 -0700)
commit3a7ed9779b159f9dccbc98d1d556be2cd83cc1fd
tree59874a99cf883938fe47f599aa63afc62fc1a307
parent610c2461ce0683ca5412e4b2b7a496f67e9d3704
mesa: revamp GLSL instruction emit code

This is a step toward better array handling code.  In particular, when more
than one operand of an instruction uses indirect addressing, we'll need some
temporary instructions and registers.  By converting IR storage to instruction
operands all in one place (emit_instruction()) we can be smarter about this.

Also, somewhat better handling of dst register swizzle/writemask handling.
This results in tighter writemasks on some instructions which is good for
SOA execution.

And, cleaner instruction commenting with inst_comment().

Next: remove some more dead code and additional clean-ups...
src/mesa/shader/slang/slang_emit.c