pan/bi: Rename BI_SWIZZLE to BI_SELECT
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 24 Apr 2020 23:10:44 +0000 (19:10 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Apr 2020 14:52:26 +0000 (14:52 +0000)
The select version is more general.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4766>

src/panfrost/bifrost/bi_pack.c
src/panfrost/bifrost/bi_print.c
src/panfrost/bifrost/bi_tables.c
src/panfrost/bifrost/compiler.h
src/panfrost/bifrost/test/bi_interpret.c

index d19a3b50fc1866e9fd335e0c6a1adf42490afbe7..d2c3aee9b2d71dfed2232a46bb2a13b47bad3743 100644 (file)
@@ -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)
index 955276abc4c0eb8a4e9776f63265ff9f7398c1e7..aff319791e03fce99dbf4e8e7f6239eb1a400e05 100644 (file)
@@ -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";
index eefc6ca9b7b0e9dbdb9409736bf06fe5d2c3aa60..5a4d02718ed09cc9a3548ff9f22e895dd5fe06fc 100644 (file)
@@ -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,
 };
index 6e148b4892e958775010245084a56b7bab88dc73..b18232e58463f1e6e7cf88965a668239133ad574 100644 (file)
@@ -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,
index 1d7b51bba17478bcc276c7cfe1839f51fa5e1f2d..ea0064c0a3995fae3eecd0c2c82ef3c023476392 100644 (file)
@@ -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");