From eae18eca369151b84bf4e2bd2061869f09a88bb1 Mon Sep 17 00:00:00 2001 From: Xuelian Bai Date: Fri, 16 Aug 2019 22:58:53 +0800 Subject: Fix yuv blit align issue. Change-Id: I78de02c5e3fe51a4240bf567749e30ce7df81782 --- src/gallium/drivers/vc4/vc4_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/vc4/vc4_blit.c b/src/gallium/drivers/vc4/vc4_blit.c index d3cc5152a2d..308c241aba4 100644 --- a/src/gallium/drivers/vc4/vc4_blit.c +++ b/src/gallium/drivers/vc4/vc4_blit.c @@ -360,7 +360,7 @@ vc4_yuv_blit(struct pipe_context *pctx, const struct pipe_blit_info *info) util_blitter_unset_running_flag(vc4->blitter); return false; } - dst_surf->width /= 2; + dst_surf->width = align(dst_surf->width, 8)/2; if (dst->cpp == 1) dst_surf->height /= 2; -- cgit v1.2.3