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/flui2d | |
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/flui2d')
-rw-r--r-- | src/modules/flui2d/flui2d.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/flui2d/flui2d.c b/src/modules/flui2d/flui2d.c index e00dcca..dae73d8 100644 --- a/src/modules/flui2d/flui2d.c +++ b/src/modules/flui2d/flui2d.c @@ -243,7 +243,7 @@ static void gamma_init(float gamma) } -static void * flui2d_create_context(unsigned ticks, unsigned num_cpus, til_setup_t *setup) +static void * flui2d_create_context(unsigned ticks, unsigned n_cpus, til_setup_t *setup) { static int initialized; flui2d_context_t *ctxt; @@ -276,19 +276,13 @@ static void flui2d_destroy_context(void *context) } -static int flui2d_fragmenter(void *context, unsigned n_cpus, const til_fb_fragment_t *fragment, unsigned number, til_fb_fragment_t *res_fragment) -{ - return til_fb_fragment_tile_single(fragment, 64, number, res_fragment); -} - - /* Prepare a frame for concurrent drawing of fragment using multiple fragments */ static void flui2d_prepare_frame(void *context, unsigned ticks, unsigned n_cpus, til_fb_fragment_t *fragment, til_fragmenter_t *res_fragmenter) { flui2d_context_t *ctxt = context; float r = (ticks % (unsigned)(2 * M_PI * 1000)) * .001f; - *res_fragmenter = flui2d_fragmenter; + *res_fragmenter = til_fragmenter_tile64; switch (ctxt->emitters) { case FLUI2D_EMITTERS_FIGURE8: { |