summaryrefslogtreecommitdiff
path: root/src/modules/ray
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-05-01 11:43:42 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-05-01 13:50:26 -0700
commita81425632db81527bcecd2d0fbdb5b09c25141ba (patch)
treebdc6ba54c39e9a859d2c87e9a0a87d70b85e00a8 /src/modules/ray
parent45d1f956b35fa9003106716e42425cc86cadc7a1 (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/ray')
-rw-r--r--src/modules/ray/ray.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/ray/ray.c b/src/modules/ray/ray.c
index 6ecb2ff..2b3c836 100644
--- a/src/modules/ray/ray.c
+++ b/src/modules/ray/ray.c
@@ -130,7 +130,7 @@ typedef struct ray_context_t {
} ray_context_t;
-static void * ray_create_context(unsigned ticks, unsigned num_cpus, til_setup_t *setup)
+static void * ray_create_context(unsigned ticks, unsigned n_cpus, til_setup_t *setup)
{
return calloc(1, sizeof(ray_context_t));
}
@@ -142,18 +142,12 @@ static void ray_destroy_context(void *context)
}
-static int ray_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 rendering */
static void ray_prepare_frame(void *context, unsigned ticks, unsigned n_cpus, til_fb_fragment_t *fragment, til_fragmenter_t *res_fragmenter)
{
ray_context_t *ctxt = context;
- *res_fragmenter = ray_fragmenter;
+ *res_fragmenter = til_fragmenter_tile64;
#if 1
/* animated point light source */
© All Rights Reserved