aco: use v_subrev_f32 for fsub with an sgpr operand in src1
This fixes an accidentally introduced regression.
Fixes: 9be4be515f
('aco: implement 16-bit nir_op_fsub/nir_op_fadd')
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4633>
This commit is contained in:
parent
adeef43d15
commit
425558bfd5
|
@ -1639,7 +1639,7 @@ void visit_alu_instr(isel_context *ctx, nir_alu_instr *instr)
|
|||
}
|
||||
case nir_op_fsub: {
|
||||
Temp src0 = get_alu_src(ctx, instr->src[0]);
|
||||
Temp src1 = as_vgpr(ctx, get_alu_src(ctx, instr->src[1]));
|
||||
Temp src1 = get_alu_src(ctx, instr->src[1]);
|
||||
if (dst.regClass() == v2b) {
|
||||
Temp tmp = bld.tmp(v1);
|
||||
if (src1.type() == RegType::vgpr || src0.type() != RegType::vgpr)
|
||||
|
|
Loading…
Reference in New Issue