From 2077272b12ab299e1f25a16408476da0b51477b7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 6 Apr 2016 20:48:43 +0100 Subject: sna/blt: Don't skip the final src/dst_stride adjustment Signed-off-by: Chris Wilson --- src/sna/blt.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/sna/blt.c') diff --git a/src/sna/blt.c b/src/sna/blt.c index fc841136..c92fc8bf 100644 --- a/src/sna/blt.c +++ b/src/sna/blt.c @@ -467,10 +467,8 @@ memcpy_to_tiled_x__swizzle_0__sse2(const void *src, void *dst, int bpp, src = (const uint8_t *)src + 16; w -= 16; } - if (w) { - memcpy(tile_row, src, w); - src = (const uint8_t *)src + src_stride + w; - } + memcpy(tile_row, src, w); + src = (const uint8_t *)src + src_stride + w; dst_y++; } } @@ -546,10 +544,8 @@ memcpy_from_tiled_x__swizzle_0__sse2(const void *src, void *dst, int bpp, dst = (uint8_t *)dst + 16; w -= 16; } - if (w) { - memcpy(dst, assume_aligned(tile_row, tile_width), w); - dst = (uint8_t *)dst + dst_stride + w; - } + memcpy(dst, assume_aligned(tile_row, tile_width), w); + dst = (uint8_t *)dst + dst_stride + w; src_y++; } } -- cgit v1.2.3