Add the ability to generate programs that doesn't use condition codes.
authorBrian <brian@yutani.localnet.net>
Fri, 23 Mar 2007 20:47:46 +0000 (14:47 -0600)
committerBrian <brian@yutani.localnet.net>
Fri, 23 Mar 2007 20:47:46 +0000 (14:47 -0600)
commit63556fa9949f543a8134b6b5ff3d216acb71dd9f
tree347e41773e171e24ef3a6a476567e2b706bd341d
parentbf020d8d7f719dfea7ea3c65bd2833df6439b59e
Add the ability to generate programs that doesn't use condition codes.

ctx->Shader.EmitCondCodes determines if we use condition codes.
If not, IF statement uses first operand's X component as the condition.
Added OPCODE_BRK0, OPCODE_BRK1, OPCODE_CONT0, OPCODE_CONT1 to handle
the common cases of conditional break/continue.
src/mesa/main/mtypes.h
src/mesa/shader/prog_execute.c
src/mesa/shader/prog_instruction.c
src/mesa/shader/prog_instruction.h
src/mesa/shader/prog_print.c
src/mesa/shader/shader_api.c
src/mesa/shader/slang/slang_emit.c
src/mesa/tnl/t_vb_arbprogram.c