summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2017-09-13 15:17:40 -0700
committerVito Caputo <vcaputo@pengaru.com>2017-09-14 17:52:39 -0700
commit6eee5ee05f7936552ffbb2531db85b3c0b225a3c (patch)
tree66490416f255ab740f1e58561228152cdaa735aa
parent26910b99215b6feebace8cd3ddc5d96681c3d1e1 (diff)
fb: s/fb_fragment_divide_single/fb_fragment_slice_single/
Mechanical cosmetic change
-rw-r--r--src/fb.c2
-rw-r--r--src/fb.h2
-rw-r--r--src/modules/julia/julia.c2
-rw-r--r--src/modules/plasma/plasma.c2
-rw-r--r--src/modules/roto/roto.c2
-rw-r--r--src/modules/sparkler/sparkler.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/fb.c b/src/fb.c
index 250bd37..d9ee0a4 100644
--- a/src/fb.c
+++ b/src/fb.c
@@ -320,7 +320,7 @@ fb_t * fb_new(int drm_fd, uint32_t crtc_id, uint32_t *connectors, int n_connecto
/* helpers for fragmenting incrementally */
-int fb_fragment_divide_single(const fb_fragment_t *fragment, unsigned n_fragments, unsigned num, fb_fragment_t *res_fragment)
+int fb_fragment_slice_single(const fb_fragment_t *fragment, unsigned n_fragments, unsigned num, fb_fragment_t *res_fragment)
{
unsigned slice = fragment->height / n_fragments;
unsigned yoff = slice * num;
diff --git a/src/fb.h b/src/fb.h
index 055c609..5cb8676 100644
--- a/src/fb.h
+++ b/src/fb.h
@@ -36,7 +36,7 @@ void fb_free(fb_t *fb);
void fb_get_put_pages_count(fb_t *fb, unsigned *count);
fb_t * fb_new(int drm_fd, uint32_t crtc_id, uint32_t *connectors, int n_connectors, drmModeModeInfoPtr mode, int n_pages);
void fb_fragment_divide(fb_fragment_t *fragment, unsigned n_fragments, fb_fragment_t fragments[]);
-int fb_fragment_divide_single(const fb_fragment_t *fragment, unsigned n_fragments, unsigned num, fb_fragment_t *res_fragment);
+int fb_fragment_slice_single(const fb_fragment_t *fragment, unsigned n_fragments, unsigned num, fb_fragment_t *res_fragment);
int fb_fragment_tile_single(const fb_fragment_t *fragment, unsigned tile_size, unsigned num, fb_fragment_t *res_fragment);
diff --git a/src/modules/julia/julia.c b/src/modules/julia/julia.c
index f2fb87d..ea97a77 100644
--- a/src/modules/julia/julia.c
+++ b/src/modules/julia/julia.c
@@ -105,7 +105,7 @@ static int julia_fragmenter(void *context, const fb_fragment_t *fragment, unsign
{
julia_context_t *ctxt = context;
- return fb_fragment_divide_single(fragment, ctxt->n_cpus, num, res_fragment);
+ return fb_fragment_slice_single(fragment, ctxt->n_cpus, num, res_fragment);
}
diff --git a/src/modules/plasma/plasma.c b/src/modules/plasma/plasma.c
index b9c5cc4..71c5c13 100644
--- a/src/modules/plasma/plasma.c
+++ b/src/modules/plasma/plasma.c
@@ -63,7 +63,7 @@ static int plasma_fragmenter(void *context, const fb_fragment_t *fragment, unsig
{
plasma_context_t *ctxt = context;
- return fb_fragment_divide_single(fragment, ctxt->n_cpus, num, res_fragment);
+ return fb_fragment_slice_single(fragment, ctxt->n_cpus, num, res_fragment);
}
diff --git a/src/modules/roto/roto.c b/src/modules/roto/roto.c
index f076188..e859d94 100644
--- a/src/modules/roto/roto.c
+++ b/src/modules/roto/roto.c
@@ -173,7 +173,7 @@ static int roto_fragmenter(void *context, const fb_fragment_t *fragment, unsigne
{
roto_context_t *ctxt = context;
- return fb_fragment_divide_single(fragment, ctxt->n_cpus, num, res_fragment);
+ return fb_fragment_slice_single(fragment, ctxt->n_cpus, num, res_fragment);
}
diff --git a/src/modules/sparkler/sparkler.c b/src/modules/sparkler/sparkler.c
index 13b1563..7ffa3d6 100644
--- a/src/modules/sparkler/sparkler.c
+++ b/src/modules/sparkler/sparkler.c
@@ -63,7 +63,7 @@ static int sparkler_fragmenter(void *context, const fb_fragment_t *fragment, uns
{
sparkler_context_t *ctxt = context;
- return fb_fragment_divide_single(fragment, ctxt->n_cpus, num, res_fragment);
+ return fb_fragment_slice_single(fragment, ctxt->n_cpus, num, res_fragment);
}
static void sparkler_prepare_frame(void *context, unsigned ncpus, fb_fragment_t *fragment, rototiller_fragmenter_t *res_fragmenter)
© All Rights Reserved