radeonsi/vcn: fix regression in yuv422 jpeg decode
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Fri, 2 Dec 2022 06:31:03 +0000 (12:01 +0530)
committerEric Engestrom <eric@engestrom.ch>
Wed, 14 Dec 2022 20:56:53 +0000 (20:56 +0000)
commit74d17cba5c5c560bf09ce1faca56bacda455e46c
tree454e57d60e855f621a4e5b352de71490c2002dc7
parent0565b834b6475744d176761876e1070a09c0605d
radeonsi/vcn: fix regression in yuv422 jpeg decode

- yuv422 decode was blocked in 12acee17fad5, enable it back.
- nv12 yuv422 and grayscale decode is supported on all versions.
- JPEG2 and higher versions supports 444p decode.
- add l8_unorm to supported formats, can be used for grayscale.

Fixes: 12acee17fad5 (frontends/va: reallocate surface for yuv400/yuv444 picture)

v2: indent the switch case correctly (Thong Thai)

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Thong Thai <thong.thai@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20165>
(cherry picked from commit 7ad4a5079e8ad0b9f3ab7924cc3dfec5f74ea88d)
.pick_status.json
src/gallium/drivers/radeonsi/si_get.c