pan/bi: Fix NULL deref with empty shader
Fixes regression in dEQP-GLES31.functional.compute.basic.empty
Fixes: d0902aa2d4
("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>
This commit is contained in:
parent
855e29cd78
commit
836c1c6fb1
|
@ -2406,7 +2406,7 @@ bifrost_compile_shader_nir(void *mem_ctx, nir_shader *nir,
|
|||
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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue