From c6c906ecdf973166d17f253d0b85894f42f62819 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 21 May 2020 18:02:38 -0400 Subject: [PATCH] pan/mdg: Cleanup comments that look like division Don't use a /. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/disassemble.c | 4 ++-- src/panfrost/midgard/midgard.h | 2 +- src/panfrost/midgard/midgard_compile.c | 2 +- 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 -- 2.30.2