summaryrefslogtreecommitdiff
path: root/src/modules/compose
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-03-30 15:41:30 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-03-30 15:41:30 -0700
commitad31d39a7edad0fc4c59a4fb254cbb214a4ed1b1 (patch)
treead65d9cb420ef9fa69bc82e4993dfed96dee4934 /src/modules/compose
parente8e79b7a2b88262b84bf6006bc7cd5764962fdc9 (diff)
*: use til_module_create_context() in more places
Just mechanical replacement of some remaining ad-hoc til_module_t.create_context() calls. The montage module continues using an ad-hoc call because it forces num_cpus=1 since it's already a threaded using a fragment per module's tile. This suggests the til_module_create_context() call should probably accept a num_cpus parameter, perhaps treating a 0 value as the "automagic" discover value so callers can explicitly set it when necessary.
Diffstat (limited to 'src/modules/compose')
-rw-r--r--src/modules/compose/compose.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c
index 9be4c0c..b3e2dbc 100644
--- a/src/modules/compose/compose.c
+++ b/src/modules/compose/compose.c
@@ -78,8 +78,7 @@ static void * compose_create_context(unsigned ticks, unsigned num_cpus)
module = til_lookup_module(layers[i]);
ctxt->layers[i].module = module;
- if (module->create_context)
- ctxt->layers[i].module_ctxt = module->create_context(ticks, num_cpus);
+ (void) til_module_create_context(module, ticks, &ctxt->layers[i].module_ctxt);
ctxt->n_layers++;
}
© All Rights Reserved