freedreno/ir3: disable conversion folding on a4xx
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 4 Dec 2021 00:06:12 +0000 (19:06 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 8 Mar 2022 01:23:05 +0000 (01:23 +0000)
commit0277f491aec79f9fdb288f28268090146165d1bc
treee165b574f55fb08e0f769528d95e7cd135fc1150
parent4684425150bdd7907fbbc37caa01a01551bb2cc6
freedreno/ir3: disable conversion folding on a4xx

Experiments suggest that e.g.

add.u r0.y, hr0.x, hr0.y

will result in the summed value in both the high and low words of r0.y.
This only happens with odd registers, not even ones (r0.x works fine).

Seen in the bit_count lowering (which turns out to be unnecessary, but
this is still a larger problem).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15251>
src/freedreno/ir3/ir3_compiler_nir.c