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@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16804>
This commit is contained in:
Alyssa Rosenzweig 2022-05-19 16:58:51 -04:00 committed by Marge Bot
parent 218148d38a
commit b0edd92156
1 changed files with 1 additions and 0 deletions

View File

@ -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);