aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4
diff options
context:
space:
mode:
authorZhaowei Yuan <[email protected]>2019-09-03 10:58:59 +0800
committerAlejandro Piñeiro <[email protected]>2019-09-03 08:47:43 +0200
commit9db06a53500ce8df8683a195d3f0d03c2b8cef85 (patch)
tree4d8ccd5c65218f351c6c1d60dfdef51ce7066586 /src/gallium/drivers/vc4
parent538820ff5ff3f1ca09f81d4144590fad99081397 (diff)
broadcom/vc4: Expand width of dst surface
Four bytes of src_surf will be compressed into a 32-bits data and stored into dst_surf, and dst_surf is read as z-order, so its width must be aligned to multiples of 8(4x2) before divided by 2. Signed-off-by: Zhaowei Yuan <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111266 Reviewed-by: Alejandro Piñeiro <[email protected]>
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r--src/gallium/drivers/vc4/vc4_blit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_blit.c b/src/gallium/drivers/vc4/vc4_blit.c
index d3cc5152a2d..d379bcc1bb5 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;