mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 03:50:13 +01:00
nir: optimize pack_uint_2x16 of pack_half(a, 0)
Foz-DB Navi31: Totals from 31 (0.04% of 79395) affected shaders: Instrs: 6157 -> 6065 (-1.49%) CodeSize: 35676 -> 34936 (-2.07%) Latency: 23979 -> 23805 (-0.73%); split: -0.79%, +0.07% InvThroughput: 5248 -> 5124 (-2.36%) VALU: 3224 -> 3162 (-1.92%) Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30855>
This commit is contained in:
parent
79637d5942
commit
ef970c5a9d
1 changed files with 2 additions and 0 deletions
|
|
@ -1888,6 +1888,8 @@ optimizations.extend([
|
|||
(('iadd', ('pack_half_2x16_rtz_split', a, 0), ('pack_half_2x16_rtz_split', 0, b)), ('pack_half_2x16_rtz_split', a, b)),
|
||||
(('ior', ('pack_half_2x16_rtz_split', a, 0), ('pack_half_2x16_rtz_split', 0, b)), ('pack_half_2x16_rtz_split', a, b)),
|
||||
|
||||
(('pack_uint_2x16', ('vec2', ('pack_half_2x16_rtz_split', a, 0), ('pack_half_2x16_rtz_split', b, 0))), ('pack_half_2x16_rtz_split', a, b)),
|
||||
|
||||
(('bfi', 0xffff0000, ('pack_half_2x16_split', a, b), ('pack_half_2x16_split', c, d)),
|
||||
('pack_half_2x16_split', c, a)),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue