gallium/auxiliary/vl: Odd Dimensions are failing
authorKrunal Patel <krunalkumarmukeshkumar.patel@amd.corp-partner.google.com>
Sun, 20 Sep 2020 21:19:20 +0000 (02:49 +0530)
committerMarge Bot <eric+marge@anholt.net>
Mon, 21 Sep 2020 15:52:36 +0000 (15:52 +0000)
commitd78e7b7aee8c2da6235820bd4790c5ddbf39febd
treea2d5b9bfbaad61f6c820282cf00c9099c92521f4
parent05b6612b4ec7c5386d4840d251d76123d4cee0c3
gallium/auxiliary/vl: Odd Dimensions are failing

Issue: While running the tast for odd resolutions there are green lines
observed in the dumped image. The resolution is 321x241, the extra 1 pixel
data is missing in the image. The reason for this is in the post
processing when we adjust the size of height and width we are
dividing it by 2.

Fix: To resolve this issue we first need to align it to 2 and then divide
by 2 to get the required values. Once we do this we will have proper data
in the dumped image and missing pixel data will be available.

Signed-off-by: Krunal Patel <krunalkumarmukeshkumar.patel@amd.corp-partner.google.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6795>
src/gallium/auxiliary/vl/vl_video_buffer.h