Commit 55048743 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Remove x loop counter

parent 05f6cd24
......@@ -69,14 +69,13 @@ swizzle_bpp4_align16(int width, int height, int source_stride, int block_pitch,
int rem_y = y & 0x0f;
uint32_t *block_start_s = ldest + (block_y * block_pitch * 256);
const uint32_t *source_start = pixels + (y * source_stride);
const uint32_t *source_end = source_start + width;
/* Operate on blocks of 16 pixels to minimise bookkeeping */
for (int x = 0; x < width; x += 16, source_start += 16) {
uint32_t *dst = block_start_s + (x << 4);
for (; source_start < source_end; block_start_s += 16*16, source_start += 16) {
for (int j = 0; j < 16; ++j)
dst[space_filler[rem_y][j]] = source_start[j];
block_start_s[space_filler[rem_y][j]] = source_start[j];
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment