freedreno/ir3: deal with duplicate phi sources
authorRob Clark <robclark@freedesktop.org>
Mon, 4 Apr 2016 21:38:01 +0000 (17:38 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 5 Apr 2016 00:18:18 +0000 (20:18 -0400)
commit3e135728268cf36a176dcd915108ad7dc0f4e457
tree95570c663fb0f352457c79bc6f37dfc2b24e823f
parentf8feb97ba5be50cd9bfe63a4d3b0ba35010a0d32
freedreno/ir3: deal with duplicate phi sources

Otherwise we end up with funny things like:

  mov.f32f32 r0.x, r1.y
  mov.f32f32 r0.x, r1.y

(It doesn't happen as much after fixing the problem w/ CP into phi src,
but it can still happen since we aren't too clever about generating phi
sources in the first place.)

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