Mesa (main): zink: add separate error message for push descriptor set alloc fail
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed May 18 02:42:33 UTC 2022
Module: Mesa
Branch: main
Commit: 7e69384af163288d80cd817575419258e496bf21
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e69384af163288d80cd817575419258e496bf21
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Fri Apr 15 11:17:48 2022 -0400
zink: add separate error message for push descriptor set alloc fail
PRO triggers this if input attachments are used
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16563>
---
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;
More information about the mesa-commit
mailing list