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>
This commit is contained in:
Danylo Piliaiev
2019-06-03 14:55:23 +03:00
committed by Marge Bot
parent 6cbd4764cd
commit bc4a127d6e
18 changed files with 157 additions and 40 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ validate(struct brw_codegen *p)
p->next_insn_offset, disasm);
if (print) {
dump_assembly(p->store, disasm, NULL);
dump_assembly(p->store, 0, p->next_insn_offset, disasm, NULL);
}
ralloc_free(disasm);