Mesa (master): lima: Fix typos.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jan 31 20:56:06 UTC 2021


Module: Mesa
Branch: master
Commit: 70652885e3d5fdc1ae71d8cf7bdbb320b468f5b2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=70652885e3d5fdc1ae71d8cf7bdbb320b468f5b2

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Fri Jan 22 13:46:49 2021 -0800

lima: Fix typos.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8658>

---

 src/gallium/drivers/lima/ir/gp/gpir.h      | 2 +-
 src/gallium/drivers/lima/ir/gp/instr.c     | 2 +-
 src/gallium/drivers/lima/ir/gp/regalloc.c  | 2 +-
 src/gallium/drivers/lima/ir/gp/scheduler.c | 2 +-
 src/gallium/drivers/lima/ir/pp/node.c      | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/lima/ir/gp/gpir.h b/src/gallium/drivers/lima/ir/gp/gpir.h
index 26cbb099a94..0e9c64a48b5 100644
--- a/src/gallium/drivers/lima/ir/gp/gpir.h
+++ b/src/gallium/drivers/lima/ir/gp/gpir.h
@@ -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
diff --git a/src/gallium/drivers/lima/ir/gp/instr.c b/src/gallium/drivers/lima/ir/gp/instr.c
index a9a93290154..eb122830409 100644
--- a/src/gallium/drivers/lima/ir/gp/instr.c
+++ b/src/gallium/drivers/lima/ir/gp/instr.c
@@ -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++) {
diff --git a/src/gallium/drivers/lima/ir/gp/regalloc.c b/src/gallium/drivers/lima/ir/gp/regalloc.c
index b268841839d..de519b210b8 100644
--- a/src/gallium/drivers/lima/ir/gp/regalloc.c
+++ b/src/gallium/drivers/lima/ir/gp/regalloc.c
@@ -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,
diff --git a/src/gallium/drivers/lima/ir/gp/scheduler.c b/src/gallium/drivers/lima/ir/gp/scheduler.c
index aeac7284a3d..90a830f056e 100644
--- a/src/gallium/drivers/lima/ir/gp/scheduler.c
+++ b/src/gallium/drivers/lima/ir/gp/scheduler.c
@@ -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.
  */
diff --git a/src/gallium/drivers/lima/ir/pp/node.c b/src/gallium/drivers/lima/ir/pp/node.c
index b85ca6bad18..99d025e2c05 100644
--- a/src/gallium/drivers/lima/ir/pp/node.c
+++ b/src/gallium/drivers/lima/ir/pp/node.c
@@ -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);



More information about the mesa-commit mailing list