gallium/vl: match YUYV/UYVY swizzle with change of color channels
authorLeo Liu <leo.liu@amd.com>
Sat, 6 Jan 2024 02:26:21 +0000 (21:26 -0500)
committerEric Engestrom <eric@engestrom.ch>
Tue, 9 Jan 2024 19:37:45 +0000 (19:37 +0000)
commit884ca57174009435dcc07e2127dfb06042029ed8
tree88854b8cd9da5d2eab8093ffa6cded5566e48849
parentee4740fe2987342db4d67e4f6a6879ed999ac643
gallium/vl: match YUYV/UYVY swizzle with change of color channels

Update the sampler views with the color channels, that fixes the issue
caused by: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20815

It fixes the case:
`gst-launch-1.0 -v -v filesrc location=file.jpg ! jpegparse ! vaapijpegdec ! imagefreeze ! vaapisink`

Fixes: dc2119bf3f ("util/format: Fix wrong colors when importing YUYV and UYVY")
Cc: mesa-stable
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26911>
(cherry picked from commit 9eac06521a810ea5e2276cd82be1e21fedfe2710)
.pick_status.json
src/gallium/auxiliary/vl/vl_video_buffer.c