agx: Fix packing of imsub instructions
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 28 Apr 2023 18:49:25 +0000 (14:49 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 11 May 2023 13:23:23 +0000 (09:23 -0400)
commitc2793a304d4adad9e547d8b65060cd4ac255923e
tree6247ad77feb05c230bf89bd7f6ec50e89ba26245
parent8289fa253bc53422feff67c0132c78f735acf143
agx: Fix packing of imsub instructions

The negate for imad is on the third source (a * b - c), not the second source.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22695>
src/asahi/compiler/agx_pack.c