summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-01 10:24:49 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-01 15:24:46 +0000
commitf008a2a90c632d843f07846426f6d14af728c13b (patch)
tree57045439144485d51c79476c0e07e91e386f2d35
parentb57c7248acc2ad6a51b7eac74449d155defc998f (diff)
sna: Tune blt routine
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/blt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/blt.c b/src/sna/blt.c
index 1b56cc7a..7a77fa49 100644
--- a/src/sna/blt.c
+++ b/src/sna/blt.c
@@ -60,8 +60,8 @@ memcpy_blt(const void *src, void *dst, int bpp,
byte_width = width * bpp;
if (byte_width == src_stride && byte_width == dst_stride) {
- memcpy(dst_bytes, src_bytes, byte_width * height);
- return;
+ byte_width *= height;
+ height = 1;
}
switch (byte_width) {