radeon/jpeg: fix the jpeg dt_pitch with YUYV format
authorLeo Liu <leo.liu@amd.com>
Fri, 7 Feb 2020 00:20:09 +0000 (19:20 -0500)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 27 Feb 2020 09:01:35 +0000 (10:01 +0100)
commite272b110bb511b3735672a61c58c5b6b944bc37b
tree68b70b539cd0b960e69243d2d5759d5bfc47c3c0
parent5bc71e1bacccf5c001e0685f2bff0dc05602a164
radeon/jpeg: fix the jpeg dt_pitch with YUYV format

The dt_pitch should be same as NV12 format from decoder views,
and it finally got corrected with gfx9 surface's fixes from MR
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3738

Signed-off-by: Leo Liu <leo.liu@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3738>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3738>
src/gallium/drivers/radeon/radeon_vcn_dec_jpeg.c