summaryrefslogtreecommitdiff
path: root/src/sna
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-07-30 14:07:45 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-07-30 14:07:45 +0100
commit9a390c77dc83909c9a05161d91678a87dd6a0d34 (patch)
tree0b20a116e5db1ad5064ebd248e76cd92ecb6864b /src/sna
parenta3eea6e61e15a147165400c81eab82a14a9ce2fe (diff)
sna/gen4: Hide an unused function
Whilst we are force flushing vertexes we are not using the threaded emitter, so simply hide it from the compiler to prevent it warning about the unused function. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r--src/sna/gen4_render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c
index cc6ee1dd..fb56d85d 100644
--- a/src/sna/gen4_render.c
+++ b/src/sna/gen4_render.c
@@ -1205,6 +1205,7 @@ gen4_render_composite_boxes(struct sna *sna,
} while (nbox);
}
+#if !FORCE_FLUSH
static void
gen4_render_composite_boxes__thread(struct sna *sna,
const struct sna_composite_op *op,
@@ -1236,6 +1237,7 @@ gen4_render_composite_boxes__thread(struct sna *sna,
} while (nbox);
sna_vertex_unlock(&sna->render);
}
+#endif
#ifndef MAX
#define MAX(a,b) ((a) > (b) ? (a) : (b))