diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-05-01 11:43:42 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-05-01 13:50:26 -0700 |
commit | a81425632db81527bcecd2d0fbdb5b09c25141ba (patch) | |
tree | bdc6ba54c39e9a859d2c87e9a0a87d70b85e00a8 /src/modules/compose/compose.c | |
parent | 45d1f956b35fa9003106716e42425cc86cadc7a1 (diff) |
modules/*: make use of generic fragmenters
Just one case, modules/submit, was using 32x32 tiles and is now
using 64x64. I don't expect it to make any difference.
While here I fixed up the num_cpus/n_cpus naming inconsistencies,
normalizing on n_cpus.
Diffstat (limited to 'src/modules/compose/compose.c')
-rw-r--r-- | src/modules/compose/compose.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c index 78ec75a..d672bf0 100644 --- a/src/modules/compose/compose.c +++ b/src/modules/compose/compose.c @@ -43,7 +43,7 @@ typedef struct compose_setup_t { char *layers[]; } compose_setup_t; -static void * compose_create_context(unsigned ticks, unsigned num_cpus, til_setup_t *setup); +static void * compose_create_context(unsigned ticks, unsigned n_cpus, til_setup_t *setup); static void compose_destroy_context(void *context); static void compose_prepare_frame(void *context, unsigned ticks, unsigned n_cpus, til_fb_fragment_t *fragment, til_fragmenter_t *res_fragmenter); static int compose_setup(const til_settings_t *settings, til_setting_t **res_setting, const til_setting_desc_t **res_desc, til_setup_t **res_setup); @@ -63,7 +63,7 @@ til_module_t compose_module = { }; -static void * compose_create_context(unsigned ticks, unsigned num_cpus, til_setup_t *setup) +static void * compose_create_context(unsigned ticks, unsigned n_cpus, til_setup_t *setup) { compose_context_t *ctxt; size_t n; @@ -77,7 +77,7 @@ static void * compose_create_context(unsigned ticks, unsigned num_cpus, til_setu if (!ctxt) return NULL; - ctxt->n_cpus = num_cpus; + ctxt->n_cpus = n_cpus; for (int i = 0; i < n; i++) { const til_module_t *layer_module; |