Mesa (staging/22.1): zink: add separate error message for push descriptor set alloc fail

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 18 02:46:09 UTC 2022


Module: Mesa
Branch: staging/22.1
Commit: 4d27ca6402625d7f96336b419e1913b6b7ee7e4f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d27ca6402625d7f96336b419e1913b6b7ee7e4f

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 a07c1d47f74..2a596b810af 100644
--- a/src/gallium/drivers/zink/zink_descriptors_lazy.c
+++ b/src/gallium/drivers/zink/zink_descriptors_lazy.c
@@ -419,8 +419,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