aco: clarify bpermute pseudo opcode names

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24693>
This commit is contained in:
Rhys Perry
2023-08-15 21:01:49 +01:00
parent 8a024c985f
commit 9169fbf83c
6 changed files with 25 additions and 25 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ setup_reduce_temp(Program* program)
for (Block& block : program->blocks) {
for (aco_ptr<Instruction>& instr : block.instructions) {
if (instr->opcode == aco_opcode::p_interp_gfx11 ||
instr->opcode == aco_opcode::p_bpermute_gfx11w64) {
instr->opcode == aco_opcode::p_bpermute_permlane) {
maxSize = MAX2(maxSize, 1);
hasReductions[block.index] = true;
} else if (instr->format == Format::PSEUDO_REDUCTION) {
@@ -101,7 +101,7 @@ setup_reduce_temp(Program* program)
Instruction* instr = (*it).get();
if (instr->format != Format::PSEUDO_REDUCTION &&
instr->opcode != aco_opcode::p_interp_gfx11 &&
instr->opcode != aco_opcode::p_bpermute_gfx11w64)
instr->opcode != aco_opcode::p_bpermute_permlane)
continue;
if ((int)last_top_level_block_idx != inserted_at) {
@@ -173,7 +173,7 @@ setup_reduce_temp(Program* program)
instr->operands[2] = Operand(vtmp);
} else {
assert(instr->opcode == aco_opcode::p_interp_gfx11 ||
instr->opcode == aco_opcode::p_bpermute_gfx11w64);
instr->opcode == aco_opcode::p_bpermute_permlane);
instr->operands[0] = Operand(reduceTmp);
instr->operands[0].setLateKill(true);
}