gallium: Add SWITCH, CASE, DEFAULT and ENDSWITCH opcodes to TGSI.
authorMichal Krol <michal@vmware.com>
Fri, 1 Jan 2010 22:44:00 +0000 (23:44 +0100)
committerMichal Krol <michal@vmware.com>
Tue, 5 Jan 2010 08:28:25 +0000 (09:28 +0100)
commit062aab96e015021f3b83067848495a8ce2d92456
treeb5cf9c12a7445c02eef2626f5924c65a9b93953f
parent08a3efee10034d9bd8809eb6707a372b81ea3957
gallium: Add SWITCH, CASE, DEFAULT and ENDSWITCH opcodes to TGSI.

Provide reference implementation of them in tgsi_exec.

Note that BREAK opcode is overloaded and can be used to break out
of either a loop or a switch-case statement.
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/tgsi/tgsi_exec.h
src/gallium/auxiliary/tgsi/tgsi_info.c
src/gallium/include/pipe/p_shader_tokens.h