i965/disasm: Properly disassemble jump targets on Gen4-5.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 29 Jun 2014 00:48:42 +0000 (17:48 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Jun 2014 21:05:27 +0000 (14:05 -0700)
commitdf4eeed0befc39385f3baa40b4f38183b9c76363
tree4b2276b0c41fbdef9eb04c65196bc7bd0937121f
parent6928959d8eba05b8a7d62d8829472ddc298bc8d1
i965/disasm: Properly disassemble jump targets on Gen4-5.

Previously, our dissasembly for flow control instructions looked like:

0x00000040: else(8)         ip          65540D     { align16 switch };

It didn't print InstCount properly for ELSE/ENDIF, and didn't even
attempt to disassemble PopCount.

Now it looks like:

0x00000040: else(8)         Jump: 4     Pop: 1     { align16 switch };

which is much more readable.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_disasm.c