diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-23 09:42:37 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-23 10:01:16 +0100 |
commit | b2206eca00e497aff0d79a6e9feae3d9c5070dcc (patch) | |
tree | d0a43d09cc72480b697efcfa4d6c37c4a9e70940 | |
parent | bb4c057620fb0558a77a9b7db538786ffda7cf13 (diff) |
sna/gen6+: Encourage the compiler to inline a couple of key functions
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/gen6_render.c | 2 | ||||
-rw-r--r-- | src/sna/gen7_render.c | 4 | ||||
-rw-r--r-- | src/sna/gen8_render.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index cc1c209b..49a783aa 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -1861,7 +1861,7 @@ static void gen6_render_composite_done(struct sna *sna, sna_render_composite_redirect_done(sna, op); } -static bool +inline static bool gen6_composite_set_target(struct sna *sna, struct sna_composite_op *op, PicturePtr dst, diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c index 5815490a..0d03c3bb 100644 --- a/src/sna/gen7_render.c +++ b/src/sna/gen7_render.c @@ -2089,7 +2089,7 @@ gen7_composite_picture(struct sna *sna, x, y, w, h, dst_x, dst_y); } -static void gen7_composite_channel_convert(struct sna_composite_channel *channel) +inline static void gen7_composite_channel_convert(struct sna_composite_channel *channel) { channel->repeat = gen7_repeat(channel->repeat); channel->filter = gen7_filter(channel->filter); @@ -2114,7 +2114,7 @@ static void gen7_render_composite_done(struct sna *sna, sna_render_composite_redirect_done(sna, op); } -static bool +inline static bool gen7_composite_set_target(struct sna *sna, struct sna_composite_op *op, PicturePtr dst, diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c index b66a7357..64976303 100644 --- a/src/sna/gen8_render.c +++ b/src/sna/gen8_render.c @@ -1898,7 +1898,7 @@ gen8_composite_picture(struct sna *sna, x, y, w, h, dst_x, dst_y); } -static bool gen8_composite_channel_convert(struct sna_composite_channel *channel) +inline static bool gen8_composite_channel_convert(struct sna_composite_channel *channel) { if (unaligned(channel->bo, PICT_FORMAT_BPP(channel->pict_format))) return false; @@ -1928,7 +1928,7 @@ static void gen8_render_composite_done(struct sna *sna, sna_render_composite_redirect_done(sna, op); } -static bool +inline static bool gen8_composite_set_target(struct sna *sna, struct sna_composite_op *op, PicturePtr dst, |