freedreno/ir3: propagate HALF flag across fanout
authorRob Clark <robdclark@gmail.com>
Thu, 26 Apr 2018 18:52:09 +0000 (14:52 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 11 Jun 2018 13:06:03 +0000 (09:06 -0400)
commita52e69821902f1eeac1f330113fab61da932dd2a
treeabf7264a15c7d248e427af4ceb854e47be162913
parentfc1690c9d9c4179e241c75fa45d9cedd59ce1d10
freedreno/ir3: propagate HALF flag across fanout

If we have a fanout (split) meta instruction to split the result of a
vector instruction, propagate the HALF flag back to the original
instruction.  Otherwise result ends up in a full precision register
while instruction(s) that use the result look in a half-precision
register.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c