From a4d50ba990cd8df5617bb945938aee7b5b556d11 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 1 May 2022 11:12:16 -0700 Subject: til: wire n_cpus up to the fragmenter function Fragmenting is often dimensioned according to the number of cpus, and by not supplying this to the fragmenter it was made rather common for module contexts to plumb this themselves - in some cases incorporating a context type/create/destroy rigamarole for the n_cpus circuit alone. So just plumb it in libtil, and the prepare_frame functions can choose to ignore it if they have something more desirable onhand. Future commits will remove a bunch of n_cpus from module contexts in favor of this. --- src/modules/roto/roto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/roto') diff --git a/src/modules/roto/roto.c b/src/modules/roto/roto.c index 65b3400..98fffc0 100644 --- a/src/modules/roto/roto.c +++ b/src/modules/roto/roto.c @@ -169,7 +169,7 @@ static void init_roto(uint8_t texture[256][256], int32_t *costab, int32_t *sinta } -static int roto_fragmenter(void *context, const til_fb_fragment_t *fragment, unsigned number, til_fb_fragment_t *res_fragment) +static int roto_fragmenter(void *context, unsigned n_cpus, const til_fb_fragment_t *fragment, unsigned number, til_fb_fragment_t *res_fragment) { roto_context_t *ctxt = context; -- cgit v1.2.3