i965: Move mistakenly placed line
authorMatt Turner <mattst88@gmail.com>
Wed, 31 Jan 2018 19:09:36 +0000 (11:09 -0800)
committerMatt Turner <mattst88@gmail.com>
Mon, 5 Feb 2018 17:50:56 +0000 (09:50 -0800)
Ken called this out in review, but it seems I forgot to make the change.
I noticed that the control flow annotations in the fragment shader
disassembly of tests/shaders/glsl-fs-loop-continue.shader_test were not
correct, and moving this line to the correct place fixes it.

src/intel/compiler/brw_disasm_info.c

index 3db79ede70835c7d2ec7d032159aeb1e7480651d..f8f4c02e763dc02df16e32e160c1002bca9bb517 100644 (file)
@@ -123,8 +123,8 @@ disasm_annotate(struct disasm_info *disasm,
    struct inst_group *group;
    if (!disasm->use_tail) {
       group = disasm_new_inst_group(disasm, offset);
-      disasm->use_tail = false;
    } else {
+      disasm->use_tail = false;
       group = exec_node_data(struct inst_group,
                              exec_list_get_tail_raw(&disasm->group_list), link);
    }