aco: Treat s_setprio as a scheduling barrier.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 1 Apr 2020 13:38:43 +0000 (15:38 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Apr 2020 11:29:35 +0000 (11:29 +0000)
commit35e58314d8e4b7346c2523612f6e0f52cc964232
tree1de3cffcae5a20ae34882cab4425411c780e0527
parentd345bfe1958db162b1ddde85eccd3248f884f231
aco: Treat s_setprio as a scheduling barrier.

We want to execute instructions after s_setprio in the given
priority, so we must prevent the scheduler from scheduling beyond
s_setprio, otherwise some instructions could be executed in a
different priority.

Rename hazard_fail_memtime to hazard_fail_unreorderable and include
s_setprio in the list of unreorderable opcodes.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3576>
src/amd/compiler/aco_scheduler.cpp