diff options
author | Andres Gomez <[email protected]> | 2017-11-18 02:48:45 +0200 |
---|---|---|
committer | Andres Gomez <[email protected]> | 2017-11-18 03:07:06 +0200 |
commit | 1866f7aee596d203c34439c7b603db22788b0190 (patch) | |
tree | a7fef8ede8ca979efe3eb1b671832ba792745883 /src | |
parent | 8d5994098f62c509094127aad99c6abff9cb53b1 (diff) |
i965: Correct disasm_info usage in eu_validate test
Fixes: 4f82b1728719 ("i965: Rewrite disassembly annotation code")
Cc: Matt Turner <[email protected]>
Signed-off-by: Andres Gomez <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/compiler/test_eu_validate.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/intel/compiler/test_eu_validate.cpp b/src/intel/compiler/test_eu_validate.cpp index b147b6b227e..cb2fcd3d40f 100644 --- a/src/intel/compiler/test_eu_validate.cpp +++ b/src/intel/compiler/test_eu_validate.cpp @@ -113,20 +113,20 @@ static bool validate(struct brw_codegen *p) { const bool print = getenv("TEST_DEBUG"); - struct disasm_info disasm = disasm_initialize(p->devinfo, NULL); + struct disasm_info *disasm = disasm_initialize(p->devinfo, NULL); if (print) { - disasm_new_inst_group(&disasm, 0); - disasm_new_inst_group(&disasm, p->next_insn_offset); + disasm_new_inst_group(disasm, 0); + disasm_new_inst_group(disasm, p->next_insn_offset); } bool ret = brw_validate_instructions(p->devinfo, p->store, 0, - p->next_insn_offset, &disasm); + p->next_insn_offset, disasm); if (print) { - dump_assembly(p->store, &disasm); + dump_assembly(p->store, disasm); } - ralloc_free(disasm.mem_ctx); + ralloc_free(disasm); return ret; } |