i965: Fix register types in dump_instructions().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Feb 2014 21:27:15 +0000 (13:27 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 6 Feb 2014 05:07:48 +0000 (21:07 -0800)
commite57d77280efcbfd6579a88f071426653287ef833
treef3c38e07183fe3556353e585e83321b7b6a6416c
parent1340e24406fbdfdbfb49dc19d7d5d72d6e363631
i965: Fix register types in dump_instructions().

This regressed when I converted BRW_REGISTER_TYPE_* to be an abstract
type that doesn't match the hardware description.  dump_instruction()
was using reg_encoding[] from brw_disasm.c, which no longer matches
(and was incorrect for Gen8+ anyway).

This patch introduces a new function to convert the abstract enum values
into the letter suffix we expect.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reported-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_eu.c
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_reg.h
src/mesa/drivers/dri/i965/brw_vec4.cpp