diff options
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_swizzle.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_swizzle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/panfrost/pan_swizzle.c b/src/gallium/drivers/panfrost/pan_swizzle.c index 578de655415..afc89506b33 100644 --- a/src/gallium/drivers/panfrost/pan_swizzle.c +++ b/src/gallium/drivers/panfrost/pan_swizzle.c @@ -149,12 +149,12 @@ swizzle_bpp4_align16(int width, int height, int source_stride, int block_pitch, void panfrost_texture_swizzle(unsigned off_x, unsigned off_y, - int width, int height, int bytes_per_pixel, int source_stride, + int width, int height, int bytes_per_pixel, int source_stride, int dest_width, const uint8_t *pixels, uint8_t *ldest) { /* Calculate maximum size, overestimating a bit */ - int block_pitch = ALIGN(width, 16) >> 4; + int block_pitch = ALIGN(dest_width, 16) >> 4; /* Use fast path if available */ if (!(off_x || off_y)) { |