Fixes regression in dEQP-GLES31.functional.compute.basic.empty
Fixes: d0902aa2d4d ("pan/bi: Pass through wait_{6, 7} flags")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8848>
pan_block *first_block = list_first_entry(&ctx->blocks, pan_block, link);
bi_clause *first_clause = bi_next_clause(ctx, first_block, NULL);
- unsigned first_deps = first_clause->dependencies;
+ unsigned first_deps = first_clause ? first_clause->dependencies : 0;
program->wait_6 = (first_deps & (1 << 6));
program->wait_7 = (first_deps & (1 << 7));