aco: skip partial copies on first iteration when lowering to hw
authorDaniel Schürmann <daniel@schuermann.dev>
Fri, 5 Jun 2020 20:21:02 +0000 (21:21 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 9 Jun 2020 21:25:38 +0000 (21:25 +0000)
commit2a51840c52d404ddbde53f987b02df3832f45a42
tree003282802f61276f6ddddc2517cf8721239a0ef2
parent1d6f667193d3b29d27d6721f694af290510a4e60
aco: skip partial copies on first iteration when lowering to hw

Helps some Detroit : Become Human shaders.

Totals from affected shaders: (VEGA)
Code Size: 47693912 -> 47670212 (-0.05 %) bytes
Instructions: 9183788 -> 9177863 (-0.06 %)
Copies: 910052 -> 904127 (-0.65 %)

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5226>
src/amd/compiler/aco_lower_to_hw_instr.cpp