tc: add missing TC_SENTINEL for TC_END_BATCH

Fixes: c2983d93da ("gallium/u_threaded: use TC_END_BATCH to terminate the loop")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33552>
(cherry picked from commit a893a87625)
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2025-02-14 18:19:19 +01:00 committed by Eric Engestrom
parent 5b8b81618e
commit d2c5c71775
2 changed files with 4 additions and 1 deletions

View file

@ -564,7 +564,7 @@
"description": "tc: add missing TC_SENTINEL for TC_END_BATCH",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "c2983d93dac554da3b7ad7e87021e8c94d0f1cf4",
"notes": null

View file

@ -470,6 +470,9 @@ tc_add_call_end(struct tc_batch *next)
(struct tc_call_base*)&next->slots[next->num_total_slots];
call->call_id = TC_END_BATCH;
call->num_slots = 1;
#if !defined(NDEBUG) && TC_DEBUG >= 1
call->sentinel = TC_SENTINEL;
#endif
}
static void