GitLab will be down for maintenance this Sunday 13th June, from approx 7-11am UTC. This is for a PostgreSQL migration. See the tracker issue for more informations.

Commit d71c9754 authored by Icecream95's avatar Icecream95
Browse files

pan/bi: Add two tuples to a clause when needed with NOSCHED

Fixes SuperTuxKart with BIFROST_MESA_DEBUG=nosched.
parent a1c56b80
Pipeline #314682 waiting for manual action with stages
......@@ -1378,7 +1378,9 @@ bi_schedule_clause(bi_context *ctx, bi_block *block, struct bi_worklist st)
bool not_last = (some_instruction > 0) &&
bi_must_not_last(st.instructions[some_instruction - 1]);
if (!(tuple->fma || tuple->add || (tuple_state.last && not_last)))
bool insert_empty = tuple_state.last && not_last;
if (!(tuple->fma || tuple->add || insert_empty))
......@@ -1389,7 +1391,7 @@ bi_schedule_clause(bi_context *ctx, bi_block *block, struct bi_worklist st)
#ifndef NDEBUG
/* Don't schedule more than 1 tuple if debugging */
if (bifrost_debug & BIFROST_DBG_NOSCHED)
if ((bifrost_debug & BIFROST_DBG_NOSCHED) && !insert_empty)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment