From 7e69384af163288d80cd817575419258e496bf21 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 15 Apr 2022 11:17:48 -0400 Subject: [PATCH] zink: add separate error message for push descriptor set alloc fail PRO triggers this if input attachments are used Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_descriptors_lazy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;