mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
pan/bi: Abort on unknown op packing
We're stable enough this is better than just nop'ing it out. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
This commit is contained in:
parent
5a415259fc
commit
94e6263c0b
1 changed files with 7 additions and 7 deletions
|
|
@ -1163,13 +1163,13 @@ bi_pack_fma(bi_clause *clause, bi_bundle bundle, struct bi_registers *regs)
|
||||||
case BI_FREXP:
|
case BI_FREXP:
|
||||||
return bi_pack_fma_frexp(bundle.fma, regs);
|
return bi_pack_fma_frexp(bundle.fma, regs);
|
||||||
case BI_ISUB:
|
case BI_ISUB:
|
||||||
return BIFROST_FMA_NOP;
|
unreachable("Packing todo");
|
||||||
case BI_MINMAX:
|
case BI_MINMAX:
|
||||||
return bi_pack_fma_addmin(bundle.fma, regs);
|
return bi_pack_fma_addmin(bundle.fma, regs);
|
||||||
case BI_MOV:
|
case BI_MOV:
|
||||||
return bi_pack_fma_1src(bundle.fma, regs, BIFROST_FMA_OP_MOV);
|
return bi_pack_fma_1src(bundle.fma, regs, BIFROST_FMA_OP_MOV);
|
||||||
case BI_SHIFT:
|
case BI_SHIFT:
|
||||||
return BIFROST_FMA_NOP;
|
unreachable("Packing todo");
|
||||||
case BI_SELECT:
|
case BI_SELECT:
|
||||||
return bi_pack_fma_select(bundle.fma, regs);
|
return bi_pack_fma_select(bundle.fma, regs);
|
||||||
case BI_ROUND:
|
case BI_ROUND:
|
||||||
|
|
@ -1486,18 +1486,18 @@ bi_pack_add(bi_clause *clause, bi_bundle bundle, struct bi_registers *regs)
|
||||||
return bi_pack_add_atest(clause, bundle.add, regs);
|
return bi_pack_add_atest(clause, bundle.add, regs);
|
||||||
case BI_BRANCH:
|
case BI_BRANCH:
|
||||||
case BI_CMP:
|
case BI_CMP:
|
||||||
return BIFROST_ADD_NOP;
|
unreachable("Packing todo");
|
||||||
case BI_BLEND:
|
case BI_BLEND:
|
||||||
return bi_pack_add_blend(clause, bundle.add, regs);
|
return bi_pack_add_blend(clause, bundle.add, regs);
|
||||||
case BI_BITWISE:
|
case BI_BITWISE:
|
||||||
return BIFROST_ADD_NOP;
|
unreachable("Packing todo");
|
||||||
case BI_CONVERT:
|
case BI_CONVERT:
|
||||||
return bi_pack_convert(bundle.add, regs, false);
|
return bi_pack_convert(bundle.add, regs, false);
|
||||||
case BI_DISCARD:
|
case BI_DISCARD:
|
||||||
case BI_FREXP:
|
case BI_FREXP:
|
||||||
case BI_ISUB:
|
case BI_ISUB:
|
||||||
case BI_LOAD:
|
case BI_LOAD:
|
||||||
return BIFROST_ADD_NOP;
|
unreachable("Packing todo");
|
||||||
case BI_LOAD_ATTR:
|
case BI_LOAD_ATTR:
|
||||||
return bi_pack_add_ld_attr(clause, bundle.add, regs);
|
return bi_pack_add_ld_attr(clause, bundle.add, regs);
|
||||||
case BI_LOAD_UNIFORM:
|
case BI_LOAD_UNIFORM:
|
||||||
|
|
@ -1511,7 +1511,7 @@ bi_pack_add(bi_clause *clause, bi_bundle bundle, struct bi_registers *regs)
|
||||||
case BI_MOV:
|
case BI_MOV:
|
||||||
case BI_SHIFT:
|
case BI_SHIFT:
|
||||||
case BI_STORE:
|
case BI_STORE:
|
||||||
return BIFROST_ADD_NOP;
|
unreachable("Packing todo");
|
||||||
case BI_STORE_VAR:
|
case BI_STORE_VAR:
|
||||||
return bi_pack_add_st_vary(clause, bundle.add, regs);
|
return bi_pack_add_st_vary(clause, bundle.add, regs);
|
||||||
case BI_SPECIAL:
|
case BI_SPECIAL:
|
||||||
|
|
@ -1526,7 +1526,7 @@ bi_pack_add(bi_clause *clause, bi_bundle bundle, struct bi_registers *regs)
|
||||||
else
|
else
|
||||||
unreachable("Unknown tex type");
|
unreachable("Unknown tex type");
|
||||||
case BI_ROUND:
|
case BI_ROUND:
|
||||||
return BIFROST_ADD_NOP;
|
unreachable("Packing todo");
|
||||||
default:
|
default:
|
||||||
unreachable("Cannot encode class as ADD");
|
unreachable("Cannot encode class as ADD");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue