tgsi/exec: implement restartable machine.
authorDave Airlie <airlied@redhat.com>
Tue, 26 Apr 2016 04:30:31 +0000 (14:30 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 26 Apr 2016 23:00:44 +0000 (09:00 +1000)
commitfbea4e177f12cd8655a26711af7e61c784bfa267
treefcd470b61bdb738f894cb2772efee3bbb83c9c45
parent8ffa3c58d4bfec789872c58a16da4af4352119f3
tgsi/exec: implement restartable machine.

This lets us restart the machine at a PC value, and exits
the machine when we hit a barrier.

Compute shaders will then execute all the threads up to the
barrier, then restart the machines after the barrier once
all are done.

v2: comment the code a bit, change return types.

Acked-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/tgsi/tgsi_exec.h