agx: Use AGX extr for tex lowering
authorHampus Linander <hampus.linander@gmail.com>
Thu, 19 Jan 2023 10:33:26 +0000 (11:33 +0100)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 4 Feb 2023 16:13:37 +0000 (11:13 -0500)
commit9ab1c0d83b819371df2fa8e90fa62a1542cefa38
treee7ce32fce03771286501443e3f5f08c5ed08f0d0
parentf3d6524a2d34bf1041a983a10ea90f64ef0c95e3
agx: Use AGX extr for tex lowering

Replaces a number of bit operations by a single extr instruction,
optimizing the extraction of the width from the packed value.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20628>
src/asahi/compiler/agx_nir_lower_texture.c