tgsi: add source/destination type from opcodes. (v2)
authorDave Airlie <airlied@redhat.com>
Tue, 24 Jan 2012 11:55:14 +0000 (11:55 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 17 Feb 2012 17:39:01 +0000 (17:39 +0000)
commit13e2e51f7058dff01281050db1b64639ad3b399e
treeebe8a1b8da89718fc7cfad014ff7bcd6281a4787
parent9be0f9b0e470bb7bc8672d161615c16fe5b026fd
tgsi: add source/destination type from opcodes. (v2)

These two functions produce the src/dst types for an opcode.

MOV is special since it can be used to mov float->float and int->int,
so just return VOID.

v2: use a new enum for the opcode type as per Jose's suggestion.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/tgsi/tgsi_info.c
src/gallium/auxiliary/tgsi/tgsi_info.h