ir3: Force flat.b sources to be equal
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Thu, 5 Jan 2023 12:54:36 +0000 (13:54 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 Jan 2023 12:37:19 +0000 (12:37 +0000)
commitd474cc935e7fa165665444e5347112879144c2a4
treeb80ac9ac79015e60aed1f1f399339ef088760434
parenta45d32b10b317f69187392c2d165071248a91f49
ir3: Force flat.b sources to be equal

From cc29b940 according to Jonathan Marek using 2 immediates in a cat2
instruction is only "correct" if they are both equal.

They were not equal after reassigning of packed inlocks.

flat.b seemed to work fine even with imm values being different,
but better not to risk.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20533>
src/freedreno/ir3/ir3_compiler_nir.c