Fixes: a03d17ede77 ("zink: refcount zink_gfx_program objects")
Acked-by: Adam Jackson <ajax@redhat.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7985>
_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);