pan/midgard: Use standard list traversal to find initial tag
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 31 Jul 2019 22:49:30 +0000 (15:49 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 1 Aug 2019 23:23:03 +0000 (16:23 -0700)
commit73c40d6bbbffc5d13e0e3ce823fa349286382c77
tree757ce86e5bf3eef5ad9beb85a4e57d6782b21dfe
parent464799932797e9605f14b8c955c5f581db68a016
pan/midgard: Use standard list traversal to find initial tag

Fixes a hang (and abort) on empty shaders, which you shouldn't have
anyway but better safe than sorry. DCE going on the fritz is no reason
to freeze the system.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_compile.c