mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
nir/opt_algebraic: optimize pack_half_2x16_rtz of float converted from 16bit
Foz-DB Navi48: Totals from 177 (0.21% of 82405) affected shaders: Instrs: 326628 -> 325955 (-0.21%); split: -0.21%, +0.00% CodeSize: 1726720 -> 1722500 (-0.24%); split: -0.24%, +0.00% Latency: 5076631 -> 5075700 (-0.02%); split: -0.02%, +0.00% InvThroughput: 596010 -> 595598 (-0.07%); split: -0.07%, +0.00% VClause: 3613 -> 3616 (+0.08%) Copies: 24427 -> 24501 (+0.30%); split: -0.06%, +0.36% VALU: 182468 -> 182029 (-0.24%); split: -0.24%, +0.00% SALU: 55449 -> 55452 (+0.01%); split: -0.01%, +0.01% Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39531>
This commit is contained in:
parent
85978ccd28
commit
70f0e75262
1 changed files with 3 additions and 0 deletions
|
|
@ -3134,6 +3134,9 @@ optimizations += [
|
|||
|
||||
(('pack_half_2x16_rtz_split', ('b2f', 'a@1'), ('b2f', a)), ('bcsel', a, 0x3c003c00, 0)),
|
||||
|
||||
(('pack_half_2x16_rtz_split', ('f2f32', 'a@16'), b), ('pack_32_2x16', ('vec2', ('fcanonicalize', a), ('f2f16_rtz', b)))),
|
||||
(('pack_half_2x16_rtz_split', a, ('f2f32', 'b@16')), ('pack_32_2x16', ('vec2', ('f2f16_rtz', a), ('fcanonicalize', b)))),
|
||||
|
||||
(('pack_32_2x16_split', 'a(is_undef)', ('bcsel', b, '#c', d)),
|
||||
('bcsel', b, ('pack_32_2x16_split', 0, c), ('pack_32_2x16_split', a, d)),
|
||||
'true', TestStatus.UNSUPPORTED),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue