mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
pan/bi: List ADD classes in bi_pack_add
Handling will be... somewhat tricky. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4242>
This commit is contained in:
parent
6069904bbd
commit
1c0e786084
1 changed files with 32 additions and 2 deletions
|
|
@ -348,8 +348,38 @@ bi_pack_fma(bi_clause *clause, bi_bundle bundle, struct bi_registers *regs)
|
|||
static unsigned
|
||||
bi_pack_add(bi_clause *clause, bi_bundle bundle, struct bi_registers *regs)
|
||||
{
|
||||
/* TODO */
|
||||
return BIFROST_ADD_NOP;
|
||||
if (!bundle.add)
|
||||
return BIFROST_ADD_NOP;
|
||||
|
||||
switch (bundle.add->type) {
|
||||
case BI_ADD:
|
||||
case BI_ATEST:
|
||||
case BI_BRANCH:
|
||||
case BI_CMP:
|
||||
case BI_BLEND:
|
||||
case BI_BITWISE:
|
||||
case BI_CONVERT:
|
||||
case BI_DISCARD:
|
||||
case BI_FREXP:
|
||||
case BI_ISUB:
|
||||
case BI_LOAD:
|
||||
case BI_LOAD_UNIFORM:
|
||||
case BI_LOAD_ATTR:
|
||||
case BI_LOAD_VAR:
|
||||
case BI_LOAD_VAR_ADDRESS:
|
||||
case BI_MINMAX:
|
||||
case BI_MOV:
|
||||
case BI_SHIFT:
|
||||
case BI_STORE:
|
||||
case BI_STORE_VAR:
|
||||
case BI_SPECIAL:
|
||||
case BI_SWIZZLE:
|
||||
case BI_TEX:
|
||||
case BI_ROUND:
|
||||
return BIFROST_ADD_NOP;
|
||||
default:
|
||||
unreachable("Cannot encode class as ADD");
|
||||
}
|
||||
}
|
||||
|
||||
struct bi_packed_bundle {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue