lima/ppir: Rename ppir_op_dummy to ppir_op_undef
authorAndreas Baierl <ichgeh@imkreisrum.de>
Thu, 12 Sep 2019 09:07:40 +0000 (11:07 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Fri, 13 Sep 2019 19:41:32 +0000 (19:41 +0000)
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
src/gallium/drivers/lima/ir/pp/nir.c
src/gallium/drivers/lima/ir/pp/node.c
src/gallium/drivers/lima/ir/pp/ppir.h

index cc92722861c6958e6d13baaf40f14af3e51c5f23..faccb9dea2de3b6708214e7266f55207d15d38eb 100644 (file)
@@ -151,12 +151,12 @@ static void ppir_node_add_src(ppir_compiler *comp, ppir_node *node,
          child = comp->var_nodes[(reg->index << 2) + comp->reg_base + swizzle];
          /* Reg is read before it was written, create a dummy node for it */
          if (!child) {
-            child = ppir_node_create_reg(node->block, ppir_op_dummy, reg,
+            child = ppir_node_create_reg(node->block, ppir_op_undef, reg,
                u_bit_consecutive(0, 4));
             comp->var_nodes[(reg->index << 2) + comp->reg_base + swizzle] = child;
          }
          /* Don't add dummies or recursive deps for ops like r1 = r1 + ssa1 */
-         if (child && node != child && child->op != ppir_op_dummy)
+         if (child && node != child && child->op != ppir_op_undef)
             ppir_node_add_dep(node, child);
       }
    }
index d5a173046305f402df0920b3682c85cf227c088c..20c48a1d36a900fee427b0cff8ea3a8de6bbe04e 100644 (file)
@@ -335,8 +335,8 @@ const ppir_op_info ppir_op_infos[] = {
          PPIR_INSTR_SLOT_BRANCH, PPIR_INSTR_SLOT_END
       },
    },
-   [ppir_op_dummy] = {
-      .name = "dummy",
+   [ppir_op_undef] = {
+      .name = "undef",
       .type = ppir_node_type_alu,
       .slots = (int []) {
       },
index cdacad01c1f0aacdb2a2980dba2f9b4a6d463c0c..b1de7b5a7d868c18a40a4b1b66e689ead918d057 100644 (file)
@@ -113,7 +113,7 @@ typedef enum {
    ppir_op_discard,
    ppir_op_branch,
 
-   ppir_op_dummy,
+   ppir_op_undef,
 
    ppir_op_num,
 } ppir_op;