16-bit subgroup ops are implemented with 32-bit instructions
on GFX6-GFX7.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5227>
sdwa->sel[0] = sdwa_uword;
sdwa->dst_sel = sdwa_udword;
bld.insert(std::move(sdwa));
+ } else if (ctx->program->chip_class == GFX6 || ctx->program->chip_class == GFX7) {
+ bld.vop3(aco_opcode::v_bfe_i32, Definition(PhysReg{tmp}, v1),
+ Operand(PhysReg{tmp}, v1), Operand(0u), Operand(16u));
}
}