mesa: added OPCODE_NRM3/NRM4 instructions for vector normalization.
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 7 Nov 2008 15:51:31 +0000 (08:51 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 7 Nov 2008 16:51:25 +0000 (09:51 -0700)
commitf6ead50827c03017e6b730313c361b39190da92f
tree4c2c3ee5869419d5a265b072fd8b6e906ff16f43
parent4550b0562d5b59890fccb0e7eb0dbef967d1ccf9
mesa: added OPCODE_NRM3/NRM4 instructions for vector normalization.

We may emit these instructions from GLSL instead of DP3/RCP/MUL.

Also, implement SSG (set sign) instruction in the interpreter.
src/mesa/shader/prog_execute.c
src/mesa/shader/prog_instruction.c
src/mesa/shader/prog_instruction.h