mesa/src/gallium/frontends/va
Thong Thai 4b208cc503 frontends/va: Return an error if non-interlaced buffer is not supported
Add a check to vaDeriveImage to see if a non-interlaced buffer was
created successfully. Otherwise, return an error, since we won't be able
to derive an image from the interlaced buffer.

Prevents a null pointer dereference from occuring on some nVidia cards,
reported by Alexander Kapshuk.

v2: Check for PIPE_VIDEO_CAP_SUPPORTS_PROGRESSIVE support (Ilia)

Fixes: fcb558321e ("frontends/va: Derive image from interlaced buffers")
Signed-off-by: Thong Thai <thong.thai@amd.com>
Tested-by: Alexander Kapshuk <alexander.kapshuk@gmail.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8320>
2021-01-13 16:37:43 +00:00
..
buffer.c gallium: rename PIPE_TRANSFER_* -> PIPE_MAP_* 2020-09-22 03:20:54 +00:00
config.c gallium/vl: merge identical h264/h265 enums 2021-01-05 11:29:11 +00:00
context.c
display.c
image.c frontends/va: Return an error if non-interlaced buffer is not supported 2021-01-13 16:37:43 +00:00
Makefile.sources
meson.build util: Add helgrind support for simple_mtx 2020-11-24 21:03:34 +00:00
picture.c va/picture: make sure destination buffer is protected if needed 2020-11-04 09:22:22 +01:00
picture_h264.c
picture_h264_enc.c gallium/vl: merge identical h264/h265 enums 2021-01-05 11:29:11 +00:00
picture_hevc.c
picture_hevc_enc.c gallium/vl: merge identical h264/h265 enums 2021-01-05 11:29:11 +00:00
picture_mjpeg.c
picture_mpeg4.c
picture_mpeg12.c
picture_vc1.c
picture_vp9.c gallium: update abs_delta segementation parameter 2020-10-24 14:34:53 +00:00
postproc.c gallium: Fix VAAPI postproc blit 2020-12-07 19:46:24 +00:00
subpicture.c
surface.c gallium: Add optional pipe_context to flush_frontbuffer 2020-12-14 23:31:37 +00:00
va_private.h gallium/vl: merge identical h264/h265 enums 2021-01-05 11:29:11 +00:00