frontends/va: fix crash during grayscale rendering
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Fri, 2 Dec 2022 14:16:48 +0000 (19:46 +0530)
committerMarge Bot <emma+marge@anholt.net>
Tue, 13 Dec 2022 15:37:18 +0000 (15:37 +0000)
commit6a3179c5a97f9a45006af2781d0af4b437784515
tree3a7512daa5ea0c0d073b14376f65b62d860a372e
parent7ad4a5079e8ad0b9f3ab7924cc3dfec5f74ea88d
frontends/va: fix crash during grayscale rendering

crash is observed as format is assumed to be yuv and buffer plane
order is undefined for monochrome. luma only format is not to be
considered yuv format. It has to be rendered with rgb=rrr.

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>
src/gallium/frontends/va/surface.c