broadcom/vc4: Expand width of dst surface
authorZhaowei Yuan <zhaowei.yuan@samsung.com>
Tue, 3 Sep 2019 02:58:59 +0000 (10:58 +0800)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 3 Sep 2019 06:47:43 +0000 (08:47 +0200)
commit9db06a53500ce8df8683a195d3f0d03c2b8cef85
tree4d8ccd5c65218f351c6c1d60dfdef51ce7066586
parent538820ff5ff3f1ca09f81d4144590fad99081397
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@samsung.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111266

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
src/gallium/drivers/vc4/vc4_blit.c