diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-04-06 20:48:43 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-04-06 20:48:43 +0100 |
commit | 2077272b12ab299e1f25a16408476da0b51477b7 (patch) | |
tree | fdb67d55bc1af8939c36dda9d0b3ed67a5498156 /src/sna/blt.c | |
parent | 8d3c8a6c0d48883ec399f8dd36df0eca200722f9 (diff) |
sna/blt: Don't skip the final src/dst_stride adjustment
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/blt.c')
-rw-r--r-- | src/sna/blt.c | 12 |
1 files changed, 4 insertions, 8 deletions
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++; } } |