pan/bi: Don't set the EOS flag if there's at least one successor

The EOS (End Of Shader) is set if the first successor is NULL, but the
second successor should be checked too.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10369>
This commit is contained in:
Boris Brezillon 2021-04-19 17:49:22 +02:00
parent 19849a6501
commit e1e1ee044e

View file

@ -38,8 +38,8 @@ bi_pack_header(bi_clause *clause, bi_clause *next_1, bi_clause *next_2, bool tdd
struct bifrost_header header = {
.flow_control =
(next_1 == NULL) ? BIFROST_FLOW_END :
clause->flow_control,
(next_1 == NULL && next_2 == NULL) ?
BIFROST_FLOW_END : clause->flow_control,
.terminate_discarded_threads = tdd,
.next_clause_prefetch = clause->next_clause_prefetch && next_1,
.staging_barrier = clause->staging_barrier,