tgsi: refactor tgsi_opcode_infer_dst_type()
authorChia-I Wu <olvaffe@gmail.com>
Sat, 4 May 2013 05:27:59 +0000 (13:27 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Wed, 8 May 2013 03:03:43 +0000 (11:03 +0800)
commit364feb327d4bea09998818975deaa70a43909454
tree017b1c1ca183c8ec50d3261e9d2decf7de8e2a70
parent8a52453f5d6fa5e08955f9d4f952400fbe5624d2
tgsi: refactor tgsi_opcode_infer_dst_type()

Move the body of tgsi_opcode_infer_dst_type() to a new helper function,
tgsi_opcode_infer_type(), and call the helper function from
tgsi_opcode_infer_dst_type().  The diff looks complicated simply because the
code is moved around.

A following commit will make tgsi_opcode_infer_src_type() call
tgsi_opcode_infer_type().

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Acked-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_info.c