lima: Fix typos.
authorVinson Lee <vlee@freedesktop.org>
Fri, 22 Jan 2021 21:46:49 +0000 (13:46 -0800)
committerVinson Lee <vlee@freedesktop.org>
Sun, 31 Jan 2021 19:27:40 +0000 (11:27 -0800)
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8658>

src/gallium/drivers/lima/ir/gp/gpir.h
src/gallium/drivers/lima/ir/gp/instr.c
src/gallium/drivers/lima/ir/gp/regalloc.c
src/gallium/drivers/lima/ir/gp/scheduler.c
src/gallium/drivers/lima/ir/pp/node.c

index 26cbb09..0e9c64a 100644 (file)
@@ -295,7 +295,7 @@ typedef struct gpir_instr {
     *       alu_num_slot_needed_by_max +
     *       max(alu_num_unscheduled_next_max - alu_max_allowed_next_max, 0)
     * (2) alu_non_cplx_slot_free >= alu_num_slot_needed_by_max +
-    *       alu_num_slot_neede_by_non_cplx_store
+    *       alu_num_slot_needed_by_non_cplx_store
     *
     * alu_max_allowed_next_max is normally 5 (since there can be at most 5 max
     * nodes for the next instruction) but when there is a complex1 node in
index a9a9329..eb12283 100644 (file)
@@ -311,7 +311,7 @@ static bool gpir_instr_insert_store_check(gpir_instr *instr, gpir_node *node)
          goto out;
    }
 
-   /* check if the child is alrady in this instr's alu slot,
+   /* check if the child is already in this instr's alu slot,
     * this may happen when store an scheduled alu node to reg
     */
    for (int j = GPIR_INSTR_SLOT_ALU_BEGIN; j <= GPIR_INSTR_SLOT_ALU_END; j++) {
index b268841..de519b2 100644 (file)
@@ -182,7 +182,7 @@ static void add_interference(struct regalloc_ctx *ctx, unsigned i, unsigned j)
    util_dynarray_append(&b->conflict_list, unsigned, i);
 }
 
-/* Make the register or node "i" intefere with all the other live registers
+/* Make the register or node "i" interfere with all the other live registers
  * and nodes.
  */
 static void add_all_interferences(struct regalloc_ctx *ctx,
index aeac728..90a830f 100644 (file)
@@ -596,7 +596,7 @@ static bool _try_place_node(sched_ctx *ctx, gpir_instr *instr, gpir_node *node)
 }
 
 /* Try to place just the node given, updating the ready list. If "speculative"
- * is true, then this is part ofthe pre-commit phase. If false, then we have
+ * is true, then this is part of the pre-commit phase. If false, then we have
  * committed to placing this node, so update liveness and ready list
  * information.
  */
index b85ca6b..99d025e 100644 (file)
@@ -364,7 +364,7 @@ void *ppir_node_create(ppir_block *block, ppir_op op, int index, unsigned mask)
 
    if (index >= 0) {
       if (mask) {
-         /* reg has 4 slots for each componemt write node */
+         /* reg has 4 slots for each component write node */
          while (mask)
             comp->var_nodes[(index << 2) + comp->reg_base + u_bit_scan(&mask)] = node;
          snprintf(node->name, sizeof(node->name), "reg%d", index);