mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
zink: fail if set failed to create
Fixes: a03d17ede7 ("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>
This commit is contained in:
parent
7c85b1d2f0
commit
8a30ac49ac
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue