nir/algebraic: Add two more pack/unpack rules
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16591>
This commit is contained in:
committed by
Marge Bot
parent
849ebe3057
commit
836ff4b586
@@ -1453,6 +1453,8 @@ optimizations.extend([
|
||||
# Packing and then unpacking does nothing
|
||||
(('unpack_64_2x32_split_x', ('pack_64_2x32_split', a, b)), a),
|
||||
(('unpack_64_2x32_split_y', ('pack_64_2x32_split', a, b)), b),
|
||||
(('unpack_64_2x32_split_x', ('pack_64_2x32', a)), 'a.x'),
|
||||
(('unpack_64_2x32_split_y', ('pack_64_2x32', a)), 'a.y'),
|
||||
(('unpack_64_2x32', ('pack_64_2x32_split', a, b)), ('vec2', a, b)),
|
||||
(('unpack_64_2x32', ('pack_64_2x32', a)), a),
|
||||
(('unpack_double_2x32_dxil', ('pack_double_2x32_dxil', a)), a),
|
||||
|
||||
Reference in New Issue
Block a user