frontends/va: Derive image from interlaced buffers in some cases
authorThong Thai <thong.thai@amd.com>
Sat, 15 Aug 2020 18:36:45 +0000 (14:36 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 15 Sep 2020 14:58:26 +0000 (14:58 +0000)
commit338745c6f4b7133d7b36f78562d46bc4e8d368f5
tree96fa27585975e6326ab3ecc81db0d09dc85b3d62
parentfcb558321e65b62244a11e0066bb8713b1854721
frontends/va: Derive image from interlaced buffers in some cases

Add an allowlist to make an exception when deriving images from
interlaced buffers. Normally, the function should fail if the surface
needs to be modified to derive the image. But some applications do not
follow the fall-back method of using vaCreateImage + vaPutImage as
mentioned in the VAAPI documentation, so we have to make an exception.

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5942>
src/gallium/frontends/va/image.c