Mesa (main): pan/bi: Add a trivial ctx->inputs for unit tests

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 1 16:29:30 UTC 2022


Module: Mesa
Branch: main
Commit: b0edd92156d9f6b3365b460c0879728cdf5a44ff
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0edd92156d9f6b3365b460c0879728cdf5a44ff

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Thu May 19 16:58:51 2022 -0400

pan/bi: Add a trivial ctx->inputs for unit tests

So we can unit test the flow control insertion which needs to gate some
behaviour on not being in a blend shader.

Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16804>

---

 src/panfrost/bifrost/bi_test.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/panfrost/bifrost/bi_test.h b/src/panfrost/bifrost/bi_test.h
index d43463cc33b..749947c727f 100644
--- a/src/panfrost/bifrost/bi_test.h
+++ b/src/panfrost/bifrost/bi_test.h
@@ -38,6 +38,7 @@ bit_builder(void *memctx)
         bi_context *ctx = rzalloc(memctx, bi_context);
         list_inithead(&ctx->blocks);
         ctx->num_blocks = 1;
+        ctx->inputs = rzalloc(memctx, struct panfrost_compile_inputs);
 
         bi_block *blk = rzalloc(ctx, bi_block);
 



More information about the mesa-commit mailing list