mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
freedreno/ir3: trans_kill cleanup
trans_kill() only handles the single opcode. Drop the remnant of a time when both KILL and KILL_IF were handled by the same fxn. Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
4ee545646d
commit
f20a0acd43
1 changed files with 7 additions and 12 deletions
|
|
@ -2008,18 +2008,13 @@ trans_kill(const struct instr_translater *t,
|
|||
struct ir3_instruction *instr, *immed, *cond = NULL;
|
||||
bool inv = false;
|
||||
|
||||
switch (t->tgsi_opc) {
|
||||
case TGSI_OPCODE_KILL:
|
||||
/* unconditional kill, use enclosing if condition: */
|
||||
if (ctx->branch_count > 0) {
|
||||
unsigned int idx = ctx->branch_count - 1;
|
||||
cond = ctx->branch[idx].cond;
|
||||
inv = ctx->branch[idx].inv;
|
||||
} else {
|
||||
cond = create_immed(ctx, 1.0);
|
||||
}
|
||||
|
||||
break;
|
||||
/* unconditional kill, use enclosing if condition: */
|
||||
if (ctx->branch_count > 0) {
|
||||
unsigned int idx = ctx->branch_count - 1;
|
||||
cond = ctx->branch[idx].cond;
|
||||
inv = ctx->branch[idx].inv;
|
||||
} else {
|
||||
cond = create_immed(ctx, 1.0);
|
||||
}
|
||||
|
||||
compile_assert(ctx, cond);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue