Mesa (master): broadcom/vc4: Expand width of dst surface
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Sep 3 07:00:11 UTC 2019
Module: Mesa
Branch: master
Commit: 9db06a53500ce8df8683a195d3f0d03c2b8cef85
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9db06a53500ce8df8683a195d3f0d03c2b8cef85
Author: Zhaowei Yuan <zhaowei.yuan at samsung.com>
Date: Tue Sep 3 10:58:59 2019 +0800
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 <zhaowei.yuan at samsung.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111266
Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>
---
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..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;
More information about the mesa-commit
mailing list