summaryrefslogtreecommitdiff
path: root/src/rototiller.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2019-11-23 16:59:59 -0800
committerVito Caputo <vcaputo@pengaru.com>2019-11-23 17:04:45 -0800
commit6bfd66051632fdb8eca4103df2c3c67492d28af7 (patch)
treea921e41d24cb1d6a52a158baddf586273b675032 /src/rototiller.h
parentade362b53d721bc2e2c7a62a30c4345014e5f5ce (diff)
rototiller: pass cpu to .render_fragment()
Mostly mechanical change, though threads.c needed some jiggering to make the logical cpu id available to the worker threads. Now render_fragment() can easily addresss per-cpu data created by create_context().
Diffstat (limited to 'src/rototiller.h')
-rw-r--r--src/rototiller.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rototiller.h b/src/rototiller.h
index e60eece..a81c3e4 100644
--- a/src/rototiller.h
+++ b/src/rototiller.h
@@ -14,7 +14,7 @@ typedef struct rototiller_module_t {
void * (*create_context)(unsigned n_cpus);
void (*destroy_context)(void *context);
void (*prepare_frame)(void *context, unsigned n_cpus, fb_fragment_t *fragment, rototiller_fragmenter_t *res_fragmenter);
- void (*render_fragment)(void *context, fb_fragment_t *fragment);
+ void (*render_fragment)(void *context, unsigned cpu, fb_fragment_t *fragment);
void (*finish_frame)(void *context, fb_fragment_t *fragment);
char *name;
char *description;
© All Rights Reserved