summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2022-04-15 11:17:48 -0400
committerMarge Bot <emma+marge@anholt.net>2022-05-18 02:29:18 +0000
commit7e69384af163288d80cd817575419258e496bf21 (patch)
tree247d067a5415ddca6f370251d083362b4ad14af4 /src
parent07efe6f129956d0cce0fb167d08b5f8af25d0c95 (diff)
zink: add separate error message for push descriptor set alloc fail
PRO triggers this if input attachments are used Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16563>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/zink/zink_descriptors_lazy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/zink_descriptors_lazy.c b/src/gallium/drivers/zink/zink_descriptors_lazy.c
index cca84b95803..eb1c74ac2ec 100644
--- a/src/gallium/drivers/zink/zink_descriptors_lazy.c
+++ b/src/gallium/drivers/zink/zink_descriptors_lazy.c
@@ -399,8 +399,10 @@ check_push_pool_alloc(struct zink_context *ctx, struct zink_descriptor_pool *poo
return check_push_pool_alloc(ctx, bdd->push_pool[is_compute], bdd, is_compute);
}
if (!zink_descriptor_util_alloc_sets(screen, ctx->dd->push_dsl[is_compute]->layout,
- pool->pool, &pool->sets[pool->sets_alloc], sets_to_alloc))
+ pool->pool, &pool->sets[pool->sets_alloc], sets_to_alloc)) {
+ mesa_loge("ZINK: failed to allocate push set!");
return NULL;
+ }
pool->sets_alloc += sets_to_alloc;
}
return pool;