frontends/va: support yuv 400/444 rt_formats in vaconfig
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Mon, 26 Sep 2022 04:30:24 +0000 (10:00 +0530)
committerLeo Liu <leo.liu@amd.com>
Fri, 7 Oct 2022 15:14:39 +0000 (15:14 +0000)
commit6b933676ccac5c52689b4d6e9896be9a457b9618
tree2512c1a8ef68601f183428be30aefb42f4f22fb9
parentd2c0ff1cafbedf30a813434c95e82f38cb5e0688
frontends/va: support yuv 400/444 rt_formats in vaconfig

check if vaprofile supports decode of yuv400 and yuv444 formats
and enable the corresponding rt_formats in vaconfig.

v2: use config->entrypoint as param instead of BITSTREAM (Sil Vilerino)

Signed-off-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18914>
src/gallium/frontends/va/config.c