aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-21 18:02:38 -0400
committerAlyssa Rosenzweig <[email protected]>2020-05-21 18:29:53 -0400
commitc6c906ecdf973166d17f253d0b85894f42f62819 (patch)
treec63149dce99cebbd203a0b05d02433553fd6f772 /src/panfrost/midgard
parent55da8bcede40ebaf3bb28b381b815ebfe9c4c3b8 (diff)
pan/mdg: Cleanup comments that look like division
Don't use a /. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5154>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/disassemble.c4
-rw-r--r--src/panfrost/midgard/midgard.h2
-rw-r--r--src/panfrost/midgard/midgard_compile.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/panfrost/midgard/disassemble.c b/src/panfrost/midgard/disassemble.c
index 9758904fb6e..b4c9d772bb6 100644
--- a/src/panfrost/midgard/disassemble.c
+++ b/src/panfrost/midgard/disassemble.c
@@ -1555,8 +1555,8 @@ print_texture_word(FILE *fp, uint32_t *word, unsigned tabs, unsigned in_reg_base
fprintf(fp, " /* bias_int = 0x%X */", texture->bias_int);
} else if (texture->op == TEXTURE_OP_TEXEL_FETCH) {
/* For texel fetch, the int LOD is in the fractional place and
- * there is no fraction / possibility of bias. We *always* have
- * an explicit LOD, even if it's zero. */
+ * there is no fraction. We *always* have an explicit LOD, even
+ * if it's zero. */
if (texture->bias_int)
fprintf(fp, " /* bias_int = 0x%X */ ", texture->bias_int);
diff --git a/src/panfrost/midgard/midgard.h b/src/panfrost/midgard/midgard.h
index 9d6a6271fa7..13e7bac210a 100644
--- a/src/panfrost/midgard/midgard.h
+++ b/src/panfrost/midgard/midgard.h
@@ -724,7 +724,7 @@ __attribute__((__packed__))
/* In immediate mode, each offset field is an immediate range [0, 7].
*
- * In register mode, offset_x becomes a register full / select / upper
+ * In register mode, offset_x becomes a register (full, select, upper)
* triplet followed by a vec3 swizzle is splattered across
* offset_y/offset_z in a genuinely bizarre way.
*
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index 03829a6427e..a98e2b32805 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -1772,7 +1772,7 @@ midgard_tex_format(enum glsl_sampler_dim dim)
}
}
-/* Tries to attach an explicit LOD / bias as a constant. Returns whether this
+/* Tries to attach an explicit LOD or bias as a constant. Returns whether this
* was successful */
static bool