vc4: Flag the last thread switch in the program as the last.
authorEric Anholt <eric@anholt.net>
Fri, 11 Nov 2016 01:28:20 +0000 (17:28 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 13 Nov 2016 03:21:46 +0000 (19:21 -0800)
commitace0d810e56a1e2978fc3ac237158918ebe2a23c
tree7f82646ddac47d8c3bf232795d2d1cccda29ae7c
parent67f72c5f5d8172be1bdb970e672202f0a47bac88
vc4: Flag the last thread switch in the program as the last.

We don't allow the last thread switch to be inside control flow, to be
sure that we hit the last state exactly once.  If the last texturing was
in control flow, fall back to single threaded.
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.h
src/gallium/drivers/vc4/vc4_qpu_emit.c