i965: Decode three-source register types directly.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Dec 2013 09:36:37 +0000 (01:36 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 20 Dec 2013 20:34:38 +0000 (12:34 -0800)
commit13454fc3dea4cd4ed1676a1aaf91d49c9a811a7c
tree8736e23dee17f7bbca73af2359a3c1924168f93f
parent4e95a099373c7e3f3f5f0f2854bc4eb582724a0a
i965: Decode three-source register types directly.

Three-source instructions use a different encoding for register types
(and have a much more limited set to choose from).

Previously, we translated those into BRW_REGISTER_TYPE_* values, then
reused the existing reg_encoding mapping.

Doing it directly is more straightforward and actually less code.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_disasm.c