intel/tools: Allow i965_disasm to disassemble c_literal input type
authorSagar Ghuge <sagar.ghuge@intel.com>
Fri, 7 Feb 2020 22:25:59 +0000 (14:25 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Feb 2020 22:23:38 +0000 (22:23 +0000)
commit5feea408893d646feb0ba873b7a4155a2fb53fe7
tree31cb81041db7360f47ec76912ba89124b64d9d09
parent2f83daedb19d25744b2b89939713c9ca9e7ad29f
intel/tools: Allow i965_disasm to disassemble c_literal input type

Added extra argument named 'type' which can be 'bin' (default if
ommited) or 'c_literal' for input type.

Change 'binary-path' argument name to 'input-path'.

v2:
- Use util_dynarray for assembly (Matt Turner)
- Read data in 8 bytes chunk (Matt Turner)
- Fix help option (Akeem Abodunrin)

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3952>
src/intel/tools/i965_disasm.c