pan/midgard: Don't check 'branch && branch->writeout' twice in mir_schedule_alu()
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 31 Jan 2020 09:41:35 +0000 (10:41 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 Feb 2020 12:53:47 +0000 (12:53 +0000)
commitc7e68d8625e4efcc776b5352de3b16b6951fabf7
treeace2add409c678a8857835bd3d1fa4a96daf4562
parentef89a52fe58e85402d7652d863da1cc90b378772
pan/midgard: Don't check 'branch && branch->writeout' twice in mir_schedule_alu()

There's a writeout bool storing the result of this test. Use it instead
of duplicating the test.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>
src/panfrost/midgard/midgard_schedule.c