i965: Correct disasm_info usage in eu_validate test
authorAndres Gomez <agomez@igalia.com>
Sat, 18 Nov 2017 00:48:45 +0000 (02:48 +0200)
committerAndres Gomez <agomez@igalia.com>
Sat, 18 Nov 2017 01:07:06 +0000 (03:07 +0200)
Fixes: 4f82b1728719 ("i965: Rewrite disassembly annotation code")
Cc: Matt Turner <mattst88@gmail.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/test_eu_validate.cpp

index b147b6b227e5b9fe0e5158f5e40b94aec54f0e1f..cb2fcd3d40f64dee5a98b494851f492dbbe30c03 100644 (file)
@@ -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;
 }