summaryrefslogtreecommitdiff
path: root/src/modules/voronoi
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-05-01 11:12:16 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-05-01 13:49:51 -0700
commita4d50ba990cd8df5617bb945938aee7b5b556d11 (patch)
treef0c34953d285b4b5b4b172c59afcfa0c76590357 /src/modules/voronoi
parentf203d1b61b07f1c87df46b576d57f378247db07d (diff)
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.
Diffstat (limited to 'src/modules/voronoi')
-rw-r--r--src/modules/voronoi/voronoi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/voronoi/voronoi.c b/src/modules/voronoi/voronoi.c
index ea68136..204746f 100644
--- a/src/modules/voronoi/voronoi.c
+++ b/src/modules/voronoi/voronoi.c
@@ -105,7 +105,7 @@ static void voronoi_destroy_context(void *context)
}
-static int voronoi_fragmenter(void *context, const til_fb_fragment_t *fragment, unsigned number, til_fb_fragment_t *res_fragment)
+static int voronoi_fragmenter(void *context, unsigned n_cpus, const til_fb_fragment_t *fragment, unsigned number, til_fb_fragment_t *res_fragment)
{
voronoi_context_t *ctxt = context;
© All Rights Reserved