diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 69b4846478f..92974adcc91 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -1350,7 +1350,8 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) _mesa_hash_pointer, _mesa_key_pointer_equal); - if (!ctx->batches[i].resources || !ctx->batches[i].sampler_views) + if (!ctx->batches[i].resources || !ctx->batches[i].sampler_views || + !ctx->batches[i].programs) goto fail; util_dynarray_init(&ctx->batches[i].zombie_samplers, NULL);