radeonsi: adjust epitch for PIPE_FORMAT_R8G8_R8B8_UNORM
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 13 Jul 2020 13:36:25 +0000 (15:36 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jul 2020 10:32:44 +0000 (10:32 +0000)
commitd2a3ca289f5686c6afc238a9530efa16560d83fe
tree748079372549859ebad692e472262494d353f5f0
parent87ecfdfbf0a8448d1475e6da15175e68bdeb933b
radeonsi: adjust epitch for PIPE_FORMAT_R8G8_R8B8_UNORM

This fix si_compute_copy_image for yuyv image (so using PIPE_FORMAT_R8G8_R8B8_UNORM).

With this change, the following gst pipeline produce the expected results for various
image sizes (with or without AMD_DEBUG=nodma):

gst-launch-1.0 filesrc location=input.jpg ! jpegparse ! vaapijpegdec ! filesink location=output.yuv

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5841>
src/gallium/drivers/radeonsi/si_descriptors.c