panfrost: Guard against reading past end of buffer

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Tomeu Vizoso
2019-04-11 09:09:59 +02:00
parent c35ae93803
commit 8f1c686bca
@@ -97,6 +97,9 @@ swizzle_bpp1_align16(int width, int height, int source_stride, int block_pitch,
++y;
if (y >= height)
break;
{
int block_y = y & ~(0x0f);
int rem_y = y & 0x0f;