[automerge] Trace input only if the layer needs an input info 2p: 4cf2d8c799 2p: 2180506a54

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/17630129

Bug: 227316706
Change-Id: I57d381c86f2aaf20b328aaef69e034455ead554b