From 6bfd66051632fdb8eca4103df2c3c67492d28af7 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 23 Nov 2019 16:59:59 -0800 Subject: 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(). --- src/modules/roto/roto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/roto') diff --git a/src/modules/roto/roto.c b/src/modules/roto/roto.c index 050b129..8e91c89 100644 --- a/src/modules/roto/roto.c +++ b/src/modules/roto/roto.c @@ -199,7 +199,7 @@ static void roto_prepare_frame(void *context, unsigned n_cpus, fb_fragment_t *fr /* Draw a rotating checkered 256x256 texture into fragment. */ -static void roto_render_fragment(void *context, fb_fragment_t *fragment) +static void roto_render_fragment(void *context, unsigned cpu, fb_fragment_t *fragment) { roto_context_t *ctxt = context; int y_cos_r, y_sin_r, x_cos_r, x_sin_r, x_cos_r_init, x_sin_r_init, cos_r, sin_r; -- cgit v1.2.3