From: Alyssa Rosenzweig Date: Fri, 24 Apr 2020 23:10:44 +0000 (-0400) Subject: pan/bi: Rename BI_SWIZZLE to BI_SELECT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee561f0e6b8be3adeac4306234d7ff5027078e5c;p=mesa.git pan/bi: Rename BI_SWIZZLE to BI_SELECT The select version is more general. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index d19a3b50fc1..d2c3aee9b2d 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -948,7 +948,7 @@ bi_pack_fma(bi_clause *clause, bi_bundle bundle, struct bi_registers *regs) case BI_MOV: return bi_pack_fma_1src(bundle.fma, regs, BIFROST_FMA_OP_MOV); case BI_SHIFT: - case BI_SWIZZLE: + case BI_SELECT: case BI_ROUND: return BIFROST_FMA_NOP; case BI_REDUCE_FMA: @@ -1284,7 +1284,7 @@ bi_pack_add(bi_clause *clause, bi_bundle bundle, struct bi_registers *regs) return bi_pack_add_special(bundle.add, regs); case BI_TABLE: return bi_pack_add_table(bundle.add, regs); - case BI_SWIZZLE: + case BI_SELECT: return BIFROST_ADD_NOP; case BI_TEX: if (bundle.add->op.texture == BI_TEX_COMPACT) diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c index 955276abc4c..aff319791e0 100644 --- a/src/panfrost/bifrost/bi_print.c +++ b/src/panfrost/bifrost/bi_print.c @@ -147,11 +147,11 @@ bi_class_name(enum bi_class cl) case BI_LOAD_VAR_ADDRESS: return "load_var_address"; case BI_MINMAX: return "minmax"; case BI_MOV: return "mov"; + case BI_SELECT: return "select"; case BI_SHIFT: return "shift"; case BI_STORE: return "store"; case BI_STORE_VAR: return "store_var"; case BI_SPECIAL: return "special"; - case BI_SWIZZLE: return "swizzle"; case BI_TABLE: return "table"; case BI_TEX: return "tex"; case BI_ROUND: return "round"; diff --git a/src/panfrost/bifrost/bi_tables.c b/src/panfrost/bifrost/bi_tables.c index eefc6ca9b7b..5a4d02718ed 100644 --- a/src/panfrost/bifrost/bi_tables.c +++ b/src/panfrost/bifrost/bi_tables.c @@ -54,7 +54,7 @@ unsigned bi_class_props[BI_NUM_CLASSES] = { [BI_STORE_VAR] = BI_SCHED_HI_LATENCY | BI_SCHED_ADD | BI_VECTOR | BI_DATA_REG_SRC, [BI_SPECIAL] = BI_SCHED_ADD | BI_SCHED_SLOW, [BI_TABLE] = BI_SCHED_ADD, - [BI_SWIZZLE] = BI_SCHED_ALL | BI_SWIZZLABLE, + [BI_SELECT] = BI_SCHED_ALL | BI_SWIZZLABLE, [BI_TEX] = BI_SCHED_HI_LATENCY | BI_SCHED_ADD | BI_VECTOR | BI_DATA_REG_DEST, [BI_ROUND] = BI_GENERIC | BI_ROUNDMODE | BI_SCHED_ALL, }; diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 6e148b4892e..b18232e5846 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -69,11 +69,11 @@ enum bi_class { BI_MINMAX, BI_MOV, BI_REDUCE_FMA, + BI_SELECT, BI_SHIFT, BI_STORE, BI_STORE_VAR, BI_SPECIAL, /* _FAST on supported GPUs */ - BI_SWIZZLE, BI_TABLE, BI_TEX, BI_ROUND, diff --git a/src/panfrost/bifrost/test/bi_interpret.c b/src/panfrost/bifrost/test/bi_interpret.c index 1d7b51bba17..ea0064c0a39 100644 --- a/src/panfrost/bifrost/test/bi_interpret.c +++ b/src/panfrost/bifrost/test/bi_interpret.c @@ -530,7 +530,7 @@ bit_step(struct bit_state *s, bi_instruction *ins, bool FMA) } case BI_SHIFT: - case BI_SWIZZLE: + case BI_SELECT: case BI_ROUND: unreachable("Unsupported op");