aco: fix typo in branch lowering
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 27 Oct 2022 19:32:59 +0000 (20:32 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Nov 2022 12:42:43 +0000 (12:42 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Fixes: aadb7aef019 ("aco: add VINTERP instruction format")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19370>

src/amd/compiler/aco_lower_to_hw_instr.cpp

index d9a46dd..028876e 100644 (file)
@@ -2427,7 +2427,7 @@ lower_to_hw_instr(Program* program)
                         can_remove = false;
                   } else if (inst->isSALU()) {
                      num_scalar++;
-                  } else if (inst->isVALU() || inst->isVINTRP() || instr->isVINTERP_INREG()) {
+                  } else if (inst->isVALU() || inst->isVINTRP() || inst->isVINTERP_INREG()) {
                      num_vector++;
                      /* VALU which writes SGPRs are always executed on GFX10+ */
                      if (ctx.program->gfx_level >= GFX10) {