aco: Optimize MUBUF 0 offset when idxen is also being used.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 20 Apr 2022 15:21:11 +0000 (17:21 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Oct 2022 20:00:50 +0000 (20:00 +0000)
commitdd90273aaacb9093334aa3db95e298026616b6dd
treeccf1c286590456a42862ce726c136aba4ebb11ba
parente52c2f4fca7dd8e11a40da32e8e90d7539885bdb
aco: Optimize MUBUF 0 offset when idxen is also being used.

Now that we added an index src to the NIR intrinsic, it can
happen that these generate MUBUF instructions which have both
an index and an offset.

Extend this ACO optimization to the case when idxen is used.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17551>
src/amd/compiler/aco_optimizer.cpp