agx: Fix abs/neg propagation into fcmpsel
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 8 Apr 2023 21:52:52 +0000 (17:52 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 7 May 2023 13:00:56 +0000 (09:00 -0400)
commitc8e331bf72245c0f1909063c36b2f27552d635c8
treec5f7e3accdc0792fba1ad62129e2f315c9fe7932
parent632014ece0282c519e028f07f793db697a96aa7a
agx: Fix abs/neg propagation into fcmpsel

The first two sources are floats, the latter two sources and destination (and
hence the opcode) are not. Reflect that when packing and optimizing. Noticed
while debugging a silly dEQP test.

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