frontends/va: Derive image from interlaced buffers
authorThong Thai <thong.thai@amd.com>
Thu, 16 Jul 2020 20:57:54 +0000 (16:57 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 15 Sep 2020 14:58:26 +0000 (14:58 +0000)
commitfcb558321e65b62244a11e0066bb8713b1854721
tree2233e82cd262078ffda00cc2326a320fbfb651cb
parent8c7ca97d3e3e9f83d7d968fcd916e6c1242cfd75
frontends/va: Derive image from interlaced buffers

Allow vaDriveImage to derive a vaImage from interlaced buffers
by creating a new progressive buffer.

v2: Keeps the surface used by DeriveImage untouched (Pierre-Eric)
v3: Fixed a segfault reported by Roman Elshin

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1428
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/buffer.c
src/gallium/frontends/va/image.c
src/gallium/frontends/va/va_private.h