aco: use v_subrev_f32 for fsub with an sgpr operand in src1
authorDaniel Schürmann <daniel@schuermann.dev>
Sun, 19 Apr 2020 15:17:04 +0000 (16:17 +0100)
committerMarge Bot <eric+marge@anholt.net>
Sun, 19 Apr 2020 16:16:27 +0000 (16:16 +0000)
commit425558bfd595ed3a7a049ad0f47a46b8b3c4691e
treec587d91f2a2854be7ade989f9412d79485cea9dd
parentadeef43d15092a6910dceb3605f5ee3151dd2c47
aco: use v_subrev_f32 for fsub with an sgpr operand in src1

This fixes an accidentally introduced regression.

Fixes: 9be4be515f2a08b9c9e5ae1fc4c5dc9a830c2337 ('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>
src/amd/compiler/aco_instruction_selection.cpp