From b0edd92156d9f6b3365b460c0879728cdf5a44ff Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 19 May 2022 16:58:51 -0400 Subject: [PATCH] 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 Part-of: --- 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);