freedreno/ir3: refactor/simplify cp
authorRob Clark <robclark@freedesktop.org>
Sun, 10 Jan 2016 16:03:46 +0000 (11:03 -0500)
committerRob Clark <robclark@freedesktop.org>
Sat, 16 Jan 2016 19:20:46 +0000 (14:20 -0500)
commitcc7ed34df94a389e60221228896332d0ac8ea6c6
treeea8a30efd2ae32fc6cfec897a8218abdf43af207
parent680664dff930ecf3dd12a5086cdd0e10653b61dc
freedreno/ir3: refactor/simplify cp

If we handle separately the special case of eliminating output mov
(which includes keeps and various other cases where we don't have a
consuming instruction's src register to collapse things into), we
can simplify the logic.

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