i965: Fix dump_prog_cache to handle compacted instructions.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 15 May 2014 22:58:07 +0000 (15:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 May 2014 06:35:17 +0000 (23:35 -0700)
commit4a2f0e305ce30ac4dfc2ad3c380711a7aff3f63b
tree6dfed63b6f218895d14a0485b7882a7c35f85eb6
parent3285bc97ef9f5f6bdf38ced121ddedd111a5e410
i965: Fix dump_prog_cache to handle compacted instructions.

dump_prog_cache has interpreted compacted instructions as full size
instructions, decoding garbage and complaining about invalid values.

We can just use brw_dump_compile to handle this correctly in less code.
The output format changes slightly, but it's still perfectly acceptable.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_state_dump.c