freedreno/ir3/sched: fixup new instr's block
authorRob Clark <robclark@freedesktop.org>
Mon, 6 Jul 2015 00:17:56 +0000 (20:17 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 10 Jul 2015 15:57:31 +0000 (11:57 -0400)
commite44845472a4e04e7b6a82ab6c768f9648729d7e9
tree454afee6470feb26901f87e8cdf2b2092ff6f59a
parenta1a6f007823f203755fb54a1f3b7f53ae6cbfef0
freedreno/ir3/sched: fixup new instr's block

If we split addr/pred, the original instruction could have originated
from a different block.  If we don't fixup the block ptr we hit asserts
later (in debug builds).

NOTE: perhaps we don't want to try to preserve addr/pred reg's across
block boundaries.. this at least needs some thought in case addr/pred
writes end up inside a conditional block..

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_sched.c