aco/optimizer: use new helpers to create v_fma_mixlo_f16

Foz-DB Navi21:
Totals from 69 (0.07% of 97591) affected shaders:
Instrs: 45091 -> 45057 (-0.08%)
CodeSize: 244016 -> 243932 (-0.03%); split: -0.12%, +0.09%
VGPRs: 1792 -> 1680 (-6.25%)
Latency: 133496 -> 133572 (+0.06%); split: -0.03%, +0.09%
InvThroughput: 35383 -> 35338 (-0.13%)
Copies: 4050 -> 4048 (-0.05%)
VALU: 30172 -> 30138 (-0.11%)

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38658>
This commit is contained in:
Georg Lehmann
2025-01-09 22:38:41 +01:00
committed by Marge Bot
parent ee28801eae
commit 69b5767eee
2 changed files with 28 additions and 111 deletions
+1 -2
View File
@@ -1308,8 +1308,7 @@ BEGIN_TEST(optimize.mad_mix.output_conv.modifiers)
//! p_unit_test 0, %res0
writeout(0, f2f16(fabs(fadd(a, b))));
//! v1: %res1_add = v_add_f32 %1, %2
//! v2b: %res1 = v_cvt_f16_f32 -%res1_add
//! v2b: %res1 = v_fma_mixlo_f16 1.0, -%a, -%b
//! p_unit_test 1, %res1
writeout(1, f2f16(fneg(fadd(a, b))));