intel/disasm: Label support in shader disassembly for UIP/JIP
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Mon, 3 Jun 2019 11:55:23 +0000 (14:55 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Sep 2020 10:33:29 +0000 (10:33 +0000)
commitbc4a127d6e10318d48fa8b540b9c1ff7d62c8d29
tree5d20b3e88bf22058e24f57c663c7ca1fac590c10
parent6cbd4764cd93d5b103778a223651084eaeda64f8
intel/disasm: Label support in shader disassembly for UIP/JIP

Shader instructions which use UIP/JIP now get formatted with a label
in addition with immediate value, labels have "LABEL%d" format.

v2: - Consider brw_jump_scale when calculating label's offset

From: "Lonnberg, Toni" <toni.lonnberg@intel.com>
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4245>
18 files changed:
src/gallium/drivers/iris/iris_program_cache.c
src/intel/common/gen_disasm.c
src/intel/compiler/brw_compile_clip.c
src/intel/compiler/brw_compile_sf.c
src/intel/compiler/brw_disasm.c
src/intel/compiler/brw_disasm_info.c
src/intel/compiler/brw_disasm_info.h
src/intel/compiler/brw_eu.cpp
src/intel/compiler/brw_eu.h
src/intel/compiler/brw_eu_compact.c
src/intel/compiler/brw_fs_generator.cpp
src/intel/compiler/brw_vec4_generator.cpp
src/intel/compiler/test_eu_compact.cpp
src/intel/compiler/test_eu_validate.cpp
src/intel/tools/i965_disasm.c
src/mesa/drivers/dri/i965/brw_disk_cache.c
src/mesa/drivers/dri/i965/brw_ff_gs.c
src/mesa/drivers/dri/i965/brw_program_cache.c