mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 02:08:10 +02:00
intel/brw: Delete if_depth_in_loop
This was only used prior to Sandybridge. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28705>
This commit is contained in:
parent
bd6a430c94
commit
f29a56a4ac
3 changed files with 0 additions and 12 deletions
|
|
@ -279,7 +279,6 @@ brw_init_codegen(const struct brw_isa_info *isa,
|
|||
p->loop_stack_depth = 0;
|
||||
p->loop_stack_array_size = 16;
|
||||
p->loop_stack = rzalloc_array(mem_ctx, int, p->loop_stack_array_size);
|
||||
p->if_depth_in_loop = rzalloc_array(mem_ctx, int, p->loop_stack_array_size);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -120,12 +120,6 @@ struct brw_codegen {
|
|||
* encountered.
|
||||
*/
|
||||
int *loop_stack;
|
||||
/**
|
||||
* pre-gfx6, the BREAK and CONT instructions had to tell how many IF/ENDIF
|
||||
* blocks they were popping out of, to fix up the mask stack. This tracks
|
||||
* the IF/ENDIF nesting in each current nested loop level.
|
||||
*/
|
||||
int *if_depth_in_loop;
|
||||
int loop_stack_depth;
|
||||
int loop_stack_array_size;
|
||||
|
||||
|
|
|
|||
|
|
@ -1077,13 +1077,10 @@ push_loop_stack(struct brw_codegen *p, brw_inst *inst)
|
|||
p->loop_stack_array_size *= 2;
|
||||
p->loop_stack = reralloc(p->mem_ctx, p->loop_stack, int,
|
||||
p->loop_stack_array_size);
|
||||
p->if_depth_in_loop = reralloc(p->mem_ctx, p->if_depth_in_loop, int,
|
||||
p->loop_stack_array_size);
|
||||
}
|
||||
|
||||
p->loop_stack[p->loop_stack_depth] = inst - p->store;
|
||||
p->loop_stack_depth++;
|
||||
p->if_depth_in_loop[p->loop_stack_depth] = 0;
|
||||
}
|
||||
|
||||
static brw_inst *
|
||||
|
|
@ -1127,7 +1124,6 @@ brw_IF(struct brw_codegen *p, unsigned execute_size)
|
|||
brw_inst_set_mask_control(devinfo, insn, BRW_MASK_ENABLE);
|
||||
|
||||
push_if_stack(p, insn);
|
||||
p->if_depth_in_loop[p->loop_stack_depth]++;
|
||||
return insn;
|
||||
}
|
||||
|
||||
|
|
@ -1239,7 +1235,6 @@ brw_ENDIF(struct brw_codegen *p)
|
|||
insn = next_insn(p, BRW_OPCODE_ENDIF);
|
||||
|
||||
/* Pop the IF and (optional) ELSE instructions from the stack */
|
||||
p->if_depth_in_loop[p->loop_stack_depth]--;
|
||||
tmp = pop_if_stack(p);
|
||||
if (brw_inst_opcode(p->isa, tmp) == BRW_OPCODE_ELSE) {
|
||||
else_inst = tmp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue